show_test_time: Use system subunit.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 14 Dec 2014 19:34:14 +0000 (19:34 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 6 Mar 2015 03:41:47 +0000 (04:41 +0100)
Change-Id: I7d799b5f9d6066d988aa2e101e0fe7b6efe74aea
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
script/show_test_time

index f3ea56e..81bb793 100755 (executable)
@@ -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: