mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
selftest: Make sure format-subunit and filter-subunit can find testtools/subunit.
This commit is contained in:
parent
36c84854cb
commit
c6b1553a2b
@ -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 "
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user