qemu-iotests: export TEST_DIR for non-bash tests
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 29 Feb 2012 13:25:20 +0000 (13:25 +0000)
committerKevin Wolf <kwolf@redhat.com>
Wed, 29 Feb 2012 14:48:44 +0000 (15:48 +0100)
Since qemu-iotests may need to create large image files it is possible
to specify the test directory.  The TEST_DIR variable needs to be
exported so non-bash tests can make use of it.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/common.config

index d07f43569638fbeeda2c9cf7faf444ded0acadd0..a220684b0f9a05d79b4a96333b576db91790304d 100644 (file)
@@ -121,6 +121,8 @@ if [ ! -d "$TEST_DIR" ]; then
     exit 1
 fi
 
+export TEST_DIR
+
 _readlink()
 {
     if [ $# -ne 1 ]; then