diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-10-11 11:42:04 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-10-13 20:25:13 +0200 |
commit | 7de5a557103dd689bd9a757720eca72459d86e66 (patch) | |
tree | af80c8524eed5046473a2bc2dbda81b34795351b /deps/v8/tools | |
parent | 53ca0b9ae145c430842bf78e553e3b6cbd2823aa (diff) | |
download | android-node-v8-7de5a557103dd689bd9a757720eca72459d86e66.tar.gz android-node-v8-7de5a557103dd689bd9a757720eca72459d86e66.tar.bz2 android-node-v8-7de5a557103dd689bd9a757720eca72459d86e66.zip |
deps: patch V8 to 7.8.279.17
Refs: https://github.com/v8/v8/compare/7.8.279.15...7.8.279.17
PR-URL: https://github.com/nodejs/node/pull/29928
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'deps/v8/tools')
-rw-r--r-- | deps/v8/tools/testrunner/base_runner.py | 8 | ||||
-rw-r--r-- | deps/v8/tools/testrunner/testproc/progress.py | 25 |
2 files changed, 29 insertions, 4 deletions
diff --git a/deps/v8/tools/testrunner/base_runner.py b/deps/v8/tools/testrunner/base_runner.py index 15c5335878..cb23366aa4 100644 --- a/deps/v8/tools/testrunner/base_runner.py +++ b/deps/v8/tools/testrunner/base_runner.py @@ -162,6 +162,7 @@ MODES = { PROGRESS_INDICATORS = { 'verbose': progress.VerboseProgressIndicator, + 'ci': progress.CIProgressIndicator, 'dots': progress.DotsProgressIndicator, 'color': progress.ColorProgressIndicator, 'mono': progress.MonochromeProgressIndicator, @@ -355,6 +356,10 @@ class BaseTestRunner(object): parser.add_option("--exit-after-n-failures", type="int", default=100, help="Exit after the first N failures instead of " "running all tests. Pass 0 to disable this feature.") + parser.add_option("--ci-test-completion", + help="Path to a file for logging test completion in the " + "context of CI progress indicator. Ignored if " + "progress indicator is other than 'ci'.") # Rerun parser.add_option("--rerun-failures-count", default=0, type=int, @@ -805,6 +810,9 @@ class BaseTestRunner(object): self.mode_options.execution_mode)) for proc in procs: + proc.configure(options) + + for proc in procs: try: proc.set_test_count(test_count) except AttributeError: diff --git a/deps/v8/tools/testrunner/testproc/progress.py b/deps/v8/tools/testrunner/testproc/progress.py index edc88668b7..6957cdc423 100644 --- a/deps/v8/tools/testrunner/testproc/progress.py +++ b/deps/v8/tools/testrunner/testproc/progress.py @@ -57,9 +57,16 @@ class ResultsTracker(base.TestProcObserver): class ProgressIndicator(base.TestProcObserver): + def __init__(self): + super(base.TestProcObserver, self).__init__() + self.options = None + def finished(self): pass + def configure(self, options): + self.options = options + class SimpleProgressIndicator(ProgressIndicator): def __init__(self): @@ -114,8 +121,7 @@ class VerboseProgressIndicator(SimpleProgressIndicator): sys.stdout.flush() self._last_printed_time = time.time() - def _on_result_for(self, test, result): - super(VerboseProgressIndicator, self)._on_result_for(test, result) + def _message(self, test, result): # TODO(majeski): Support for dummy/grouped results if result.has_unexpected_output: if result.output.HasCrashed(): @@ -124,9 +130,12 @@ class VerboseProgressIndicator(SimpleProgressIndicator): outcome = 'FAIL' else: outcome = 'pass' + return 'Done running %s %s: %s' % ( + test, test.variant or 'default', outcome) - self._print('Done running %s %s: %s' % ( - test, test.variant or 'default', outcome)) + def _on_result_for(self, test, result): + super(VerboseProgressIndicator, self)._on_result_for(test, result) + self._print(self._message(test, result)) # TODO(machenbach): Remove this platform specific hack and implement a proper # feedback channel from the workers, providing which tests are currently run. @@ -155,6 +164,14 @@ class VerboseProgressIndicator(SimpleProgressIndicator): self._print_processes_linux() +class CIProgressIndicator(VerboseProgressIndicator): + def _on_result_for(self, test, result): + super(VerboseProgressIndicator, self)._on_result_for(test, result) + if self.options.ci_test_completion: + with open(self.options.ci_test_completion, "a") as f: + f.write(self._message(test, result) + "\n") + + class DotsProgressIndicator(SimpleProgressIndicator): def __init__(self): super(DotsProgressIndicator, self).__init__() |