diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-11-02 19:42:29 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-11-09 22:05:38 +0000 |
commit | a936a9e1ed1fb89c6a9e05be70614337e9f62ca9 (patch) | |
tree | 8f1903a5bead3092f7d5129abe63b613bcb40b04 /python/run-bindtests | |
parent | f3dfc7a0de14ee6f833580aea827c892493fbfaa (diff) | |
download | libguestfs-a936a9e1ed1fb89c6a9e05be70614337e9f62ca9.tar.gz libguestfs-a936a9e1ed1fb89c6a9e05be70614337e9f62ca9.tar.xz libguestfs-a936a9e1ed1fb89c6a9e05be70614337e9f62ca9.zip |
python: Pass $PYTHON environment variable to tests.
If the user set PYTHON when configuring, this variable is not passed
through to the tests, so it is possible the tests will fail because
they are testing the wrong version of python. By passing $PYTHON
through to the tests we ensure that we test against the same version
of python that we configured with.
(cherry picked from commit e2249b7ce1dd0a2f8f110e0e47aca397185a6373)
Diffstat (limited to 'python/run-bindtests')
-rwxr-xr-x | python/run-bindtests | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/run-bindtests b/python/run-bindtests index 08a24e6f..cf28bb6b 100755 --- a/python/run-bindtests +++ b/python/run-bindtests @@ -1,6 +1,6 @@ #!/bin/sh - # libguestfs Perl bindings -# Copyright (C) 2009 Red Hat Inc. +# Copyright (C) 2009-2011 Red Hat Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,5 +18,5 @@ set -e -python ${srcdir}/bindtests.py > bindtests.tmp +$PYTHON ${srcdir}/bindtests.py > bindtests.tmp diff -u ${srcdir}/../bindtests bindtests.tmp |