selftest: Make sure format-subunit and filter-subunit can find testtools/subunit.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 31 Mar 2010 02:51:05 +0000 (04:51 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 31 Mar 2010 02:51:05 +0000 (04:51 +0200)
selftest/filter-subunit
selftest/format-subunit

index e0774f211e4a63750550d6de471967904deee4f2..41d92c97e89ad54e25202daceaaf32324f96f612 100755 (executable)
@@ -4,10 +4,14 @@
 # Published under the GNU GPL, v3 or later
 
 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"))
+
 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 4e02f0f5d5e434792499eea6a25e9625df815c5e..e590652cd11f32223ee0272deed2a1b98e374058 100755 (executable)
@@ -11,6 +11,9 @@ 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"))
+
 class PlainFormatter(object):
 
     def __init__(self, summaryfile, verbose, immediate, statistics,