Skip to content

Commit 3ca158a

Browse files
committed
Avoid SIGPIPE in provisioning checks
1 parent 3f3653b commit 3ca158a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/integration/lxd.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ chmod 0600 "$inventory_file"
8484
./mega-proxy --inventory "$inventory_file" verify
8585

8686
for instance in "${instances[@]}"; do
87-
sudo lxc exec "$instance" -- sshd -T -C user=root,host=localhost,addr=127.0.0.1 | grep -qx 'permitrootlogin no'
88-
sudo lxc exec "$instance" -- sshd -T -C user=ci-admin,host=localhost,addr=127.0.0.1 | grep -qx 'passwordauthentication no'
89-
sudo lxc exec "$instance" -- sshd -T -C user=mp-ci,host=localhost,addr=127.0.0.1 | grep -qx 'passwordauthentication yes'
87+
sudo lxc exec "$instance" -- sshd -T -C user=root,host=localhost,addr=127.0.0.1 | grep -x 'permitrootlogin no' >/dev/null
88+
sudo lxc exec "$instance" -- sshd -T -C user=ci-admin,host=localhost,addr=127.0.0.1 | grep -x 'passwordauthentication no' >/dev/null
89+
sudo lxc exec "$instance" -- sshd -T -C user=mp-ci,host=localhost,addr=127.0.0.1 | grep -x 'passwordauthentication yes' >/dev/null
9090
done
9191

9292
second_run="$work_dir/second-run.log"

0 commit comments

Comments
 (0)