summaryrefslogtreecommitdiff
path: root/selftest/filter-subunit
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-03-31 04:51:05 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-03-31 04:51:05 +0200
commitc6b1553a2b83c5e70fcb1a3a76e49ed496553a4e (patch)
treea256b41ac24d44f6031c39f45895819cd7d8fef9 /selftest/filter-subunit
parent36c84854cb801ba025fd3b43d9cf998da451eca7 (diff)
downloadsamba-c6b1553a2b83c5e70fcb1a3a76e49ed496553a4e.tar.gz
samba-c6b1553a2b83c5e70fcb1a3a76e49ed496553a4e.tar.bz2
samba-c6b1553a2b83c5e70fcb1a3a76e49ed496553a4e.zip
selftest: Make sure format-subunit and filter-subunit can find testtools/subunit.
Diffstat (limited to 'selftest/filter-subunit')
-rwxr-xr-xselftest/filter-subunit4
1 files changed, 4 insertions, 0 deletions
diff --git a/selftest/filter-subunit b/selftest/filter-subunit
index e0774f211e..41d92c97e8 100755
--- a/selftest/filter-subunit
+++ b/selftest/filter-subunit
@@ -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 "