From a0e4a3728526c912c94729b874fcdd4ae9753c84 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Fri, 17 Apr 2020 10:11:05 +0100 Subject: tcwg-benchmark.sh: Minor fixes * Dedupe getting hostname for ssh toolchain URLs * Check toolchain type earlier * Error if SSH doesn't respond after reboot (and change the other uses of wait_for_ssh_server to follow the same format) Change-Id: Ib7823e5a83500e0d95912ef0d3ba993051a67533 --- start-container-qemu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'start-container-qemu.sh') diff --git a/start-container-qemu.sh b/start-container-qemu.sh index e637ac8c..a4f26886 100755 --- a/start-container-qemu.sh +++ b/start-container-qemu.sh @@ -116,9 +116,9 @@ qemu_port=$(ssh $host docker port $container_id 2222 | cut -d: -f 2) ret=0 wait_for_ssh_server $host $qemu_port || ret=$? -if [ x"$ret" != x"0" ]; then +if [ $ret != 0 ]; then echo "SSH server did not respond, exiting" - exit 1 + exit $ret fi # Do not remove the container upon exit: it is now ready -- cgit v1.2.3