Bug 1620846 - gen.next() py3 compatibility fix for js testing r=evilpie
authorSteve Fink <sfink@mozilla.com>
Sun, 08 Mar 2020 17:42:12 +0000
changeset 517477 7aa696aefc462bd6a6b50170f04bdad47a0a7e27
parent 517476 b3ad5d93c16edf253577df49111cce4e5125401b
child 517478 ea51105596e88a44596aeb06eb4223af9ab4b8aa
push id37193
push usershindli@mozilla.com
push dateSun, 08 Mar 2020 21:41:29 +0000
treeherdermozilla-central@7aa696aefc46 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersevilpie
bugs1620846
milestone75.0a1
first release with
nightly linux32
7aa696aefc46 / 75.0a1 / 20200308214129 / files
nightly linux64
7aa696aefc46 / 75.0a1 / 20200308214129 / files
nightly mac
7aa696aefc46 / 75.0a1 / 20200308214129 / files
nightly win32
7aa696aefc46 / 75.0a1 / 20200308214129 / files
nightly win64
7aa696aefc46 / 75.0a1 / 20200308214129 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1620846 - gen.next() py3 compatibility fix for js testing r=evilpie Differential Revision: https://phabricator.services.mozilla.com/D65899
js/src/jit-test/jit_test.py
js/src/tests/jstests.py
--- a/js/src/jit-test/jit_test.py
+++ b/js/src/jit-test/jit_test.py
@@ -350,17 +350,17 @@ def main(argv):
                     flags = "({})".format(' '.join(job.jitflags))
                 return '{} {}'.format(job.path, flags)
 
             try:
                 tc = choose_item(jobs, max_items=50, display=display_job)
             except Exception as e:
                 sys.exit(str(e))
         else:
-            tc = job_list.next()
+            tc = next(job_list)
 
         if options.debugger == 'gdb':
             debug_cmd = ['gdb', '--args']
         elif options.debugger == 'lldb':
             debug_cmd = ['lldb', '--']
         elif options.debugger == 'rr':
             debug_cmd = ['rr', 'record']
         else:
--- a/js/src/tests/jstests.py
+++ b/js/src/tests/jstests.py
@@ -547,17 +547,17 @@ def main():
     if options.debug:
         if test_count > 1:
             print('Multiple tests match command line arguments,'
                   ' debugger can only run one')
             for tc in test_gen:
                 print('    {}'.format(tc.path))
             return 2
 
-        cmd = test_gen.next().get_command(prefix)
+        cmd = next(test_gen).get_command(prefix)
         if options.show_cmd:
             print(list2cmdline(cmd))
         with changedir(test_dir), change_env(test_environment):
             call(cmd)
         return 0
 
     with changedir(test_dir), change_env(test_environment):
         results = ResultsSink('jstests', options, test_count)