selftest: Update sys.path before attempting to import external modules.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 31 Mar 2010 02:52:13 +0000 (04:52 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 31 Mar 2010 02:52:13 +0000 (04:52 +0200)
selftest/filter-subunit
selftest/format-subunit

index 41d92c97e89ad54e25202daceaaf32324f96f612..605a89840aff2780ed8d9a6cee4b78d598eba920 100755 (executable)
@@ -5,13 +5,14 @@
 
 import optparse
 import os
-import subunithelper
 import sys
 import signal
 
 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"))
 
+import subunithelper
+
 parser = optparse.OptionParser("filter-subunit [options] < instream > outstream")
 parser.add_option("--expected-failures", type="string", 
        help="File containing list of regexes matching tests to consider known "
index e590652cd11f32223ee0272deed2a1b98e374058..54949df97a9d55f109f537799dd3fa33bacaa7e0 100755 (executable)
@@ -8,12 +8,13 @@ import optparse
 import os
 import signal
 import sys
-import subunithelper
-import subunit
 
 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"))
 
+import subunithelper
+import subunit
+
 class PlainFormatter(object):
 
     def __init__(self, summaryfile, verbose, immediate, statistics,