aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2014-05-03 16:47:08 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2014-05-09 13:32:16 +0200
commitf915db07ef9c368ea6db6430256de064fdd1525f (patch)
tree965256d297818a60b5327455a2fba089ba65b322 /configure
parent65f33bc0020112e7be7b8966495cd5efa2d0ab15 (diff)
iotests: Use configured python
Currently, QEMU's iotests rely on /usr/bin/env to start the correct Python (that is, at least Python 2.4, but not 3). On systems where Python 3 is the default, the user has no clean way of making the iotests use the correct binary. This commit makes the iotests use the Python selected by configure. Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index 46bc0c91f4..3c11dd00d2 100755
--- a/configure
+++ b/configure
@@ -4771,6 +4771,12 @@ if test "$gcov" = "yes" ; then
echo "GCOV=$gcov_tool" >> $config_host_mak
fi
+iotests_common_env="tests/qemu-iotests/common.env"
+
+echo "# Automatically generated by configure - do not modify" > $iotests_common_env
+echo >> $iotests_common_env
+echo "PYTHON='$python'" >> $iotests_common_env
+
# use included Linux headers
if test "$linux" = "yes" ; then
mkdir -p linux-headers