Skip to contentSkip to conversation

docker: test-block: Don't continue if build fails

PATCH In review Fam Zheng 2 participants 3 messages Sep 26, 2017 – Sep 27, 2017

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 docker: test-block: Don't continue if build fails

Report error and exit upon compiling error, otherwise the iotests output will be pure noise.

---
 tests/docker/test-block | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/test-block +1 -1
index 2ca1ce54f6..5624b81827 100755
@@ -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"
Signature · 1 line
2.13.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Fam Zheng

Report error and exit upon compiling error, otherwise the iotests output will be pure noise.

---
 tests/docker/test-block | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
tests/docker/test-block +1 -1
index 2ca1ce54f6..5624b81827 100755
@@ -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"
Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org
author Applied
#2 lore raw
Quoted 10 lines · Eric Blake
Quoted 7 lines · Fam Zheng

Report error and exit upon compiling error, otherwise the iotests output will be pure noise.

---
 tests/docker/test-block | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Queued, thanks.

Fam