show_test_time: Use system subunit.
[samba.git] / script / show_test_time
index f3ea56ef1ecfa970214ada4676e04124a24d055b..81bb7932a4a8d90d6bc853a6ee92a194597dffa5 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: