summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-12-14 19:34:14 +0000
committerAndrew Bartlett <abartlet@samba.org>2015-03-06 04:41:47 +0100
commitf980efeef146ad71341efc8e205b7d4bd716bcb9 (patch)
treee5d092e65e6d3eca29120a00b6ed6ee2ae9646f9
parent6ea461fa056db3cd895d566a7ae8dc733dfbea5e (diff)
downloadsamba-f980efeef146ad71341efc8e205b7d4bd716bcb9.tar.gz
samba-f980efeef146ad71341efc8e205b7d4bd716bcb9.tar.xz
samba-f980efeef146ad71341efc8e205b7d4bd716bcb9.zip
show_test_time: Use system subunit.
Change-Id: I7d799b5f9d6066d988aa2e101e0fe7b6efe74aea Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rwxr-xr-xscript/show_test_time9
1 files changed, 1 insertions, 8 deletions
diff --git a/script/show_test_time b/script/show_test_time
index f3ea56ef1e..81bb7932a4 100755
--- a/script/show_test_time
+++ b/script/show_test_time
@@ -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: