]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
sanitytest.py: Do not rely on system libvirt
authorJiri Denemark <jdenemar@redhat.com>
Tue, 5 Feb 2013 19:29:57 +0000 (20:29 +0100)
committerDoug Goldstein <cardoe@cardoe.com>
Sat, 9 Feb 2013 06:41:19 +0000 (00:41 -0600)
When running sanitytest.py we should not rely on libvirt library
installed on the system. And since we generate a nice wrapper called
"run" that sets both PYTHON_PATH and LD_LIBRARY_PATH, we should just use
it rather than trying to duplicate it in the Makefile.
(cherry picked from commit 90873ab968c358aef9fe0c9e91d061d4b50978a4)

python/Makefile.am

index ef3c3eba620605a37320fa3c34401718527ffe1a..55c5e41a4890bb3577d60f4a9fdb6c7ca368564a 100644 (file)
@@ -122,7 +122,7 @@ $(libvirtmod_lxc_la_OBJECTS): $(LXC_GENERATED)
 EXTRA_DIST += sanitytest.py
 
 check-local:
-       $(AM_V_GEN)PYTHONPATH=$(abs_topbuilddir):$(abs_topbuilddir)/.libs $(PYTHON) $(srcdir)/sanitytest.py
+       $(AM_V_GEN)../run $(PYTHON) $(srcdir)/sanitytest.py
 
 install-data-local:
        $(mkinstalldirs) $(DESTDIR)$(pyexecdir)