summaryrefslogtreecommitdiff
path: root/selftest/format-subunit
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-11-04 20:37:41 +0000
committerJelmer Vernooij <jelmer@samba.org>2014-11-30 20:54:03 +0100
commit7dbc58f524fbde517966d671da138b69566929d7 (patch)
tree3eeb2963d4de9f34b99f43d2bc4706dba993e679 /selftest/format-subunit
parent4323504921ff0a566c43dada90443bdad3162f9b (diff)
downloadsamba-7dbc58f524fbde517966d671da138b69566929d7.tar.gz
Reduce number of places where sys.path is (possibly) updated for external module paths.
Change-Id: I69d060f27ea090d14405e884d1ce271975358c56 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sun Nov 30 20:54:04 CET 2014 on sn-devel-104
Diffstat (limited to 'selftest/format-subunit')
-rwxr-xr-xselftest/format-subunit10
1 files changed, 6 insertions, 4 deletions
diff --git a/selftest/format-subunit b/selftest/format-subunit
index f59de972584..58321bf368a 100755
--- a/selftest/format-subunit
+++ b/selftest/format-subunit
@@ -9,10 +9,12 @@ import os
import signal
import sys
-sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../lib/subunit/python"))
-sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../lib/testtools"))
-sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../lib/mimeparse"))
-sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../lib/extras"))
+sys.path.insert(0, "bin/python")
+import samba
+samba.ensure_external_module("mimeparse", "mimeparse")
+samba.ensure_external_module("extras", "extras")
+samba.ensure_external_module("testtools", "testtools")
+samba.ensure_external_module("subunit", "subunit/python")
import subunithelper