Bug 1495611 - Part 4: Do not run binast/lazy and binast/nonlazy on windows. r=Yoric
☠☠ backed out by cb526a4489cb ☠ ☠
authorTooru Fujisawa <arai_a@mac.com>
Fri, 18 Jan 2019 10:27:42 +0000
changeset 514411 69d19e1214f7a30cb342cadd03584098a80db52f
parent 514410 a5e61a18508db155990bba50a694cf67f17bc004
child 514412 9418ac4c2fa1a57fb1d7ffe005381c16ce8f4de8
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersYoric
bugs1495611
milestone66.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 1495611 - Part 4: Do not run binast/lazy and binast/nonlazy on windows. r=Yoric Depends on D16810 Differential Revision: https://phabricator.services.mozilla.com/D16939
js/src/tests/lib/jittests.py
--- a/js/src/tests/lib/jittests.py
+++ b/js/src/tests/lib/jittests.py
@@ -396,21 +396,31 @@ class JitTest:
 
     def get_command(self, prefix):
         """Shim for the test runner."""
         return self.command(prefix, LIB_DIR, MODULE_DIR)
 
 
 def find_tests(substring=None):
     ans = []
+    is_win = sys.platform.startswith(('win', 'cygwin', 'msys'))
     for dirpath, dirnames, filenames in os.walk(TEST_DIR):
         dirnames.sort()
         filenames.sort()
         if dirpath == '.':
             continue
+
+        # BinAST encoded jit-tests are not executed on windows
+        # to avoid increasing the time taken by tests on automation.
+        if is_win:
+            if os.path.join('binast', 'lazy') in dirpath:
+                continue
+            if os.path.join('binast', 'nonlazy') in dirpath:
+                continue
+
         for filename in filenames:
             if not (filename.endswith('.js') or filename.endswith('.binjs')):
                 continue
             if filename in ('shell.js', 'browser.js'):
                 continue
             test = os.path.join(dirpath, filename)
             if substring is None \
                or substring in os.path.relpath(test, TEST_DIR):