summaryrefslogtreecommitdiffstats
path: root/python/Makefile.am
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-11-02 19:42:29 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-11-02 19:42:29 +0000
commite2249b7ce1dd0a2f8f110e0e47aca397185a6373 (patch)
treec872cc3720037f689a70068631bcf8b7f044a05e /python/Makefile.am
parent25454b83082a4cfed4f1664d2f9cdfcb222ba7c2 (diff)
downloadlibguestfs-e2249b7ce1dd0a2f8f110e0e47aca397185a6373.tar.gz
libguestfs-e2249b7ce1dd0a2f8f110e0e47aca397185a6373.tar.xz
libguestfs-e2249b7ce1dd0a2f8f110e0e47aca397185a6373.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.
Diffstat (limited to 'python/Makefile.am')
-rw-r--r--python/Makefile.am5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/Makefile.am b/python/Makefile.am
index 82960d6b..2f543e7b 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -1,5 +1,5 @@
# libguestfs Python 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
@@ -48,7 +48,8 @@ libguestfsmod_la_LDFLAGS = -avoid-version -shared
TESTS_ENVIRONMENT = \
LIBGUESTFS_PATH=$(top_builddir)/appliance \
PYTHONPATH=$(builddir):$(builddir)/.libs \
- TMPDIR=$(top_builddir)
+ TMPDIR=$(top_builddir) \
+ PYTHON=$(PYTHON)
TESTS = run-bindtests run-python-tests