iotests: Source common.env
authorMax Reitz <mreitz@redhat.com>
Sat, 24 May 2014 21:24:57 +0000 (23:24 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 27 Jun 2014 18:00:00 +0000 (20:00 +0200)
Source common.env in the iotests' check script.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/check

index 69f328b..992b91e 100755 (executable)
@@ -103,6 +103,12 @@ then
     export QEMU_NBD_PROG="$build_root/qemu-nbd"
 fi
 
+# we need common.env
+if ! . "$build_iotests/common.env"
+then
+    _init_error "failed to source common.env (make sure the qemu-iotests are run from tests/qemu-iotests in the build tree)"
+fi
+
 # we need common.config
 if ! . "$source_iotests/common.config"
 then