Bug 1258000 - Make jit_test.py print a nice error message if test list is empty after filtering. (r=sfink)
authorShu-yu Guo <shu@rfrn.org>
Tue, 22 Mar 2016 16:19:52 -0700
changeset 289868 fd8964d81f842e0bca4c7c3024cb798242119491
parent 289867 6c3d92cbde28b6921e2525e91d7199c718b33169
child 289869 102696dd72b5113694d8e432178ac9c7a9a0cabd
push id74023
push usershu@rfrn.org
push dateTue, 22 Mar 2016 23:17:29 +0000
treeherdermozilla-inbound@fd8964d81f84 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1258000
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1258000 - Make jit_test.py print a nice error message if test list is empty after filtering. (r=sfink)
js/src/jit-test/jit_test.py
--- a/js/src/jit-test/jit_test.py
+++ b/js/src/jit-test/jit_test.py
@@ -226,16 +226,21 @@ def main(argv):
     # This code was adapted from testing/mochitest/runtestsremote.py.
     if options.total_chunks > 1:
         total_tests = len(test_list)
         tests_per_chunk = math.ceil(total_tests / float(options.total_chunks))
         start = int(round((options.this_chunk - 1) * tests_per_chunk))
         end = int(round(options.this_chunk * tests_per_chunk))
         test_list = test_list[start:end]
 
+    if not test_list:
+        print("No tests found matching command line arguments after filtering.",
+              file=sys.stderr)
+        sys.exit(0)
+
     # The full test list is ready. Now create copies for each JIT configuration.
     if options.tbpl:
         # Running all bits would take forever. Instead, we test a few
         # interesting combinations.
         test_flags = get_jitflags('all')
     elif options.ion:
         test_flags = get_jitflags('ion')
     else: