Changeset 227782 in webkit
- Timestamp:
- Jan 30, 2018, 5:29:32 AM (9 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/run-webdriver-tests (modified) (1 diff)
-
Scripts/webkitpy/webdriver_tests/webdriver_test_runner.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r227778 r227782 1 2018-01-30 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Unreviewed. Try to avoid webdriver tests step timing out in the bots. 4 5 The process itself doesn't seem to be timing out, but the buildbot is always reporting the step as finished 6 after timeout. I think there's a race condition or something in buildbot, and it keeps watching the json log 7 file even when it has already been written. This is a speculative workaround, assuming that's the problem, that 8 creates the json file before running the tests. I'll revert this if it doesn't fix the issue in the end. 9 10 * Scripts/run-webdriver-tests: 11 * Scripts/webkitpy/webdriver_tests/webdriver_test_runner.py: 12 (WebDriverTestRunner.dump_results_to_json_file): 13 1 14 2018-01-30 Basuke Suzuki <Basuke.Suzuki@sony.com> 2 15 -
trunk/Tools/Scripts/run-webdriver-tests
r227193 r227782 75 75 print '***' 76 76 77 if options.json_output is not None: 78 # Create the json output file now, because buildbot watches it and it seems 79 # that creating it a t once after the tests causes problems. 80 directory = os.path.dirname(options.json_output) 81 if directory and not os.path.exists(directory): 82 os.makedirs(directory) 83 open(options.json_output, 'wb').close() 84 77 85 port._display_server = options.display_server 78 86 runner = WebDriverTestRunner(port) -
trunk/Tools/Scripts/webkitpy/webdriver_tests/webdriver_test_runner.py
r227677 r227782 153 153 json_results['results'].append(results) 154 154 155 directory = os.path.dirname(output_path)156 if directory and not os.path.exists(directory):157 os.makedirs(directory)158 159 155 with open(output_path, 'wb') as fp: 160 156 json.dump(json_results, fp)
Note:
See TracChangeset
for help on using the changeset viewer.