@@ -25,10 +25,10 @@ function create_machine() {
25
25
26
26
# Allow for the machine to boot and get an IP
27
27
sleep 20
28
- tar cf - ./tests | lxc exec $NAME -- tar xvf - -C /var/tmp
28
+ tar cf - ./tests | lxc exec $NAME -- tar xvf - -C /root
29
29
DISTRO_DEPS_TMP=" ${DISTRO//:/ _} "
30
30
DISTRO_DEPS=" ${DISTRO_DEPS_TMP//// -} "
31
- lxc exec $NAME -- /bin/bash " /var/tmp /tests/lxc/install-deps/$DISTRO_DEPS "
31
+ lxc exec $NAME -- /bin/bash " /root /tests/lxc/install-deps/$DISTRO_DEPS "
32
32
lxc exec $NAME -- reboot
33
33
sleep 20
34
34
77
77
NAME=machine-$RANDOM
78
78
create_machine $NAME $PROXY
79
79
# use 'script' for required tty: https://github.com/lxc/lxd/issues/1724#issuecomment-194416774
80
- lxc exec $NAME -- script -e -c " UPGRADE_MICROK8S_FROM=${FROM_CHANNEL} UPGRADE_MICROK8S_TO=${TO_CHANNEL} pytest -s /var/tmp /tests/test-upgrade.py"
80
+ lxc exec $NAME -- script -e -c " UPGRADE_MICROK8S_FROM=${FROM_CHANNEL} UPGRADE_MICROK8S_TO=${TO_CHANNEL} pytest -s /root /tests/test-upgrade.py"
81
81
lxc delete $NAME --force
82
82
83
83
# Test upgrade-path
@@ -87,9 +87,9 @@ create_machine $NAME $PROXY
87
87
if [[ ${TO_CHANNEL} =~ /.* /microk8s.* snap ]]
88
88
then
89
89
lxc file push ${TO_CHANNEL} $NAME /tmp/microk8s_latest_amd64.snap
90
- lxc exec $NAME -- script -e -c " UPGRADE_MICROK8S_FROM=${FROM_CHANNEL} UPGRADE_MICROK8S_TO=/tmp/microk8s_latest_amd64.snap pytest -s /var/tmp /tests/test-upgrade-path.py"
90
+ lxc exec $NAME -- script -e -c " UPGRADE_MICROK8S_FROM=${FROM_CHANNEL} UPGRADE_MICROK8S_TO=/tmp/microk8s_latest_amd64.snap pytest -s /root /tests/test-upgrade-path.py"
91
91
else
92
- lxc exec $NAME -- script -e -c " UPGRADE_MICROK8S_FROM=${FROM_CHANNEL} UPGRADE_MICROK8S_TO=${TO_CHANNEL} pytest -s /var/tmp /tests/test-upgrade-path.py"
92
+ lxc exec $NAME -- script -e -c " UPGRADE_MICROK8S_FROM=${FROM_CHANNEL} UPGRADE_MICROK8S_TO=${TO_CHANNEL} pytest -s /root /tests/test-upgrade-path.py"
93
93
fi
94
94
lxc delete $NAME --force
95
95
103
103
else
104
104
lxc exec $NAME -- snap install microk8s --channel=${TO_CHANNEL} --classic
105
105
fi
106
- lxc exec $NAME -- /var/tmp /tests/smoke-test.sh
106
+ lxc exec $NAME -- /root /tests/smoke-test.sh
107
107
# use 'script' for required tty: https://github.com/lxc/lxd/issues/1724#issuecomment-194416774
108
108
lxc exec $NAME -- script -e -c " pytest -s /var/snap/microk8s/common/addons/core/tests/test-addons.py"
109
109
lxc exec $NAME -- microk8s enable community
0 commit comments