Skip to contentSkip to conversation

qemu-iotests: make check-block.sh work on out-of-tree builds

PATCH Applied Paolo Bonzini 2 participants 2 messages Dec 23, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-iotests: make check-block.sh work on out-of-tree builds

Since check-block.sh, the "check" script has learnt to find the source path. On the other hand, it expects common.env to be in the build tree (both changes made in commit 76c7560, "configure: Enable out-of-tree iotests", 2014-05-24). So, it is wrong to invoke "check" from the source path like check-block.sh does. Fix it.

---
 tests/check-block.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/check-block.sh +1 -1
index b9d9c6a..a37797a 100755
@@ -9,7 +9,7 @@ if [ ! -x $QEMU_PROG ]; then
     exit 1
 fi
 
-cd $SRC_PATH/tests/qemu-iotests
+cd tests/qemu-iotests
 
 ret=0
 ./check -T -nocache -raw || ret=1
Signature · 1 line
2.5.0
Applied
#1 lore raw
Quoted 10 lines · Paolo Bonzini

Since check-block.sh, the "check" script has learnt to find the source path. On the other hand, it expects common.env to be in the build tree (both changes made in commit 76c7560, "configure: Enable out-of-tree iotests", 2014-05-24). So, it is wrong to invoke "check" from the source path like check-block.sh does. Fix it.

---
 tests/check-block.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Assuming that this scripts belongs to the iotests which are maintained by Kevin (and subsequently me) (it isn't covered by MAINTAINERS):

Thanks, applied to my block tree:

https://github.com/XanClic/qemu/commits/block

Max