docker: Inline "prep_fail" in run script
authorFam Zheng <famz@redhat.com>
Mon, 26 Mar 2018 09:03:50 +0000 (17:03 +0800)
committerFam Zheng <famz@redhat.com>
Mon, 9 Apr 2018 07:13:02 +0000 (15:13 +0800)
We don't source common.rc where prep_fail is defined, so spell out the
commands and do what was intended.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20180326090350.30014-1-famz@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
tests/docker/run

index 9dd362bb98366ef7b28deaf177d2066419bef919..7aebf4b5698c7cf527e49d4eeea9701c3d6574b3 100755 (executable)
@@ -29,7 +29,7 @@ export TEST_DIR=/tmp/qemu-test
 mkdir -p $TEST_DIR/{src,build,install}
 
 # Extract the source tarballs
-tar -C $TEST_DIR/src -xf $BASE/qemu.tar || prep_fail "Failed to untar source"
+tar -C $TEST_DIR/src -xf $BASE/qemu.tar || { echo "Failed to untar source"; exit 2; }
 if test -f $TEST_DIR/src/Makefile; then
     export FEATURES="$FEATURES dtc"
 fi