[dbus PATCH 2/3] tests: Don't loop up abs_top_builddir in the environment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This only works if the caller has prepared the environment
accordingly; however, there is already a fallback path in
place and it works just fine, so much so that when test
cases are executed manually through the 'run' script
that's the only one being involved.

Drop environment handling entirely and rely on path
manipulation instead.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 tests/Makefile.am    | 1 -
 tests/libvirttest.py | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 10d2935..81cb263 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -37,5 +37,4 @@ EXTRA_DIST = \
 TESTS = $(test_programs)
 
 TESTS_ENVIRONMENT = \
-	abs_top_builddir=$(abs_top_builddir) \
 	VIRT_DBUS_INTERFACES_DIR=$(abs_top_builddir)/data
diff --git a/tests/libvirttest.py b/tests/libvirttest.py
index 06e52c0..c1543e8 100644
--- a/tests/libvirttest.py
+++ b/tests/libvirttest.py
@@ -10,7 +10,7 @@ import time
 import xmldata
 
 
-root = os.environ.get('abs_top_builddir', os.path.dirname(os.path.dirname(__file__)))
+root = os.path.dirname(os.path.dirname(__file__))
 exe = os.path.join(root, 'src', 'libvirt-dbus')
 
 DBusGMainLoop(set_as_default=True)
-- 
2.17.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux