docker: test-block: Don't continue if build fails
authorFam Zheng <famz@redhat.com>
Tue, 26 Sep 2017 11:01:34 +0000 (19:01 +0800)
committerFam Zheng <famz@redhat.com>
Fri, 29 Sep 2017 03:14:15 +0000 (11:14 +0800)
Report error and exit upon compiling error, otherwise the iotests output
will be pure noise.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170926110134.2786-1-famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
tests/docker/test-block

index 2ca1ce54f6eb9d9f506d1c1c7f0133d738eea359..5624b81827323456286d0f0822ee35a46577bd8a 100755 (executable)
@@ -14,7 +14,7 @@
 
 cd "$BUILD_DIR"
 
-build_qemu --target-list=x86_64-softmmu
+build_qemu --target-list=x86_64-softmmu || test_fail "Build failed"
 cd tests/qemu-iotests
 for t in raw qcow2 nbd luks; do
     ./check -g quick -$t || test_fail "Test failed: iotests $t"