summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-07-18 12:09:07 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-07-18 12:09:07 +0200
commit93ce539bc6946b9090cc7bf8430f9bdfa0d20fbc (patch)
treea0ac69fc19e057eb1686ac03d51312e799f02395 /tests
parentd62c08973090efd7c739e2a2ad2a3e1eeb47def9 (diff)
downloadalpine-conf-93ce539bc6946b9090cc7bf8430f9bdfa0d20fbc.zip
tests: fix running tests over ssh
setup-alpine checks SSH_CONNECTION. Make sure to clear it when running tests so tests does not fail when we run the testsuite over ssh.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/setup_alpine_test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/setup_alpine_test b/tests/setup_alpine_test
index 903d220..668d20b 100755
--- a/tests/setup_alpine_test
+++ b/tests/setup_alpine_test
@@ -19,7 +19,7 @@ setup_alpine_quick_body() {
echo 2 >sys/class/net/eth0/ifindex
echo down >sys/class/net/lo/operstate
echo down >sys/class/net/eth0/operstate
- atf_check -s exit:0 \
+ SSH_CONNECTION= atf_check -s exit:0 \
-o match:"openrc boot" \
-o match:"openrc default" \
-e empty \
@@ -43,7 +43,7 @@ setup_alpine_create_answerfile_body() {
echo 'USERSSHKEY="ssh-rsa blahbla user@example.com"' >> answers
echo 'ROOTSSHKEY="ssh-rsa blahbla user@example.com"' >> answers
- atf_check -s exit:0 \
+ SSH_CONNECTION= atf_check -s exit:0 \
-o match:"Starting hostname" \
-o match:"Starting mdev" \
-o match:"Added mirror" \