diff options
Diffstat (limited to 'tests/qemu-iotests/common.rc')
-rw-r--r-- | tests/qemu-iotests/common.rc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc index 9c49deb3dd..51762c2d53 100644 --- a/tests/qemu-iotests/common.rc +++ b/tests/qemu-iotests/common.rc @@ -72,11 +72,12 @@ fi function valgrind_qemu_io() { - valgrind --log-file=/tmp/$$.valgrind --error-exitcode=99 $REAL_QEMU_IO "$@" + local vgtmp=${QEMU_IOTESTS_TMPDIR:-/tmp}/$$.valgrind + valgrind --log-file="$vgtmp" --error-exitcode=99 $REAL_QEMU_IO "$@" if [ $? != 0 ]; then - cat /tmp/$$.valgrind + cat "$vgtmp" fi - rm -f /tmp/$$.valgrind + rm -f "$vgtmp" } |