From 271d248513f8dae38d541573fafe0fa80732ca05 Mon Sep 17 00:00:00 2001 From: Mitch Watrous Date: Tue, 11 Sep 2012 15:29:26 -0700 Subject: [PATCH] Bug 1494 - test.py --constrain doesn't work --- test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 9f1e38fb8..59b598bad 100755 --- a/test.py +++ b/test.py @@ -1111,7 +1111,10 @@ def run_tests(): 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))