mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
show_test_time: Use system subunit.
Change-Id: I7d799b5f9d6066d988aa2e101e0fe7b6efe74aea Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
6ea461fa05
commit
f980efeef1
@ -11,17 +11,10 @@ parser.add_option("--limit", dest="limit", type=int,
|
||||
(opts, args) = parser.parse_args()
|
||||
|
||||
third_party_path = os.path.join(os.path.dirname(sys.argv[0]), "..", "lib")
|
||||
subunit_prefix = "PYTHONPATH="+ ":".join([
|
||||
os.path.join(third_party_path, "testtools"),
|
||||
os.path.join(third_party_path, "mimeparse"),
|
||||
os.path.join(third_party_path, "extras"),
|
||||
os.path.join(third_party_path, "subunit/python")]) + (
|
||||
" " + os.path.join(third_party_path, "subunit"))
|
||||
|
||||
durations = {}
|
||||
|
||||
cmd = (os.path.join(subunit_prefix, "filters/subunit-1to2") + " | " +
|
||||
os.path.join(subunit_prefix, "filters/subunit-ls") + " --times --no-passthrough")
|
||||
cmd = "subunit-1to2 | subunit-ls --times --no-passthrough"
|
||||
|
||||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stdin=sys.stdin, shell=True)
|
||||
for l in p.stdout:
|
||||
|
Loading…
Reference in New Issue
Block a user