Bug 1494 - test.py --constrain doesn't work
authorMitch Watrous <watrous@u.washington.edu>
Tue, 11 Sep 2012 15:29:26 -0700
changeset 9074 52d752ab185d
parent 9073 24a5b2e6f691
child 9075 f8fe606acbda
Bug 1494 - test.py --constrain doesn't work
test.py
--- a/test.py	Tue Sep 11 13:23:53 2012 -0700
+++ b/test.py	Tue Sep 11 15:29:26 2012 -0700
@@ -1111,7 +1111,10 @@
         print standard_out
 
     if options.list:
-        path_cmd = os.path.join("utils", test_runner_name + " --print-test-name-list")
+        if len(options.constrain):
+            path_cmd = os.path.join("utils", test_runner_name + " --print-test-name-list --test-type=%s" % options.constrain)
+        else:
+            path_cmd = os.path.join("utils", test_runner_name + " --print-test-name-list")
         (rc, standard_out, standard_err, et) = run_job_synchronously(path_cmd, os.getcwd(), False, False)
         list_items = standard_out.split('\n')
         print "\n".join(sorted(list_items))