Skip to content

Commit 1bdcb43

Browse files
committed
tests(self-update): use apt pinning to install official 1.0.0 version as the base version
Signed-off-by: Reuben Miller <reuben.d.miller@gmail.com>
1 parent f030016 commit 1bdcb43

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

tests/RobotFramework/tests/cumulocity/self-update/tedge_self_update.robot

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,8 @@ Refreshes mosquitto bridge configuration
9393
Execute Command cmd=sh -c '[ $(journalctl -u mosquitto | grep -c "Loading config file /etc/tedge/mosquitto-conf/c8y-bridge.conf") = 2 ]'
9494

9595
Update tedge version from base to current using Cumulocity
96-
${arch}= Get Debian Architecture
97-
Execute Command mkdir -p /setup/base-version
98-
# These base-version packages are built using the ci/build_scripts/build.sh script for all 4 supported architectures
99-
# by overriding the version to a lower number using the GIT_SEMVER env variable
100-
Transfer To Device ${CURDIR}/base-version/*${arch}.deb /setup/base-version/
101-
102-
# Install base version with self-update capability
103-
Install Packages /setup/base-version
96+
# Install base version (the latest official release) with self-update capability
97+
Execute Command wget -O - thin-edge.io/install.sh | sh -s
10498
Execute Command cd /setup && test -f ./bootstrap.sh && ./bootstrap.sh --no-install --no-secure
10599
Device Should Exist ${DEVICE_SN}
106100
${pid_before}= Service Should Be Running tedge-agent
@@ -141,9 +135,3 @@ Create Local Repository
141135
Set Suite Variable $NEW_VERSION_ESCAPED
142136
Execute Command cd /opt/repository/local && dpkg-scanpackages -m . > Packages
143137
Execute Command cmd=echo 'deb [trusted=yes] file:/opt/repository/local /' > /etc/apt/sources.list.d/tedge-local.list
144-
145-
Install Packages
146-
[Arguments] ${packages_dir}=/setup/packages
147-
148-
Execute Command apt-get update && apt-get install -y --no-install-recommends mosquitto
149-
Execute Command cd ${packages_dir} && dpkg -i tedge_*.deb && dpkg -i tedge*mapper*.deb && dpkg -i tedge*agent*.deb && dpkg -i tedge*watchdog*.deb && dpkg -i tedge*apt*plugin*.deb

0 commit comments

Comments
 (0)