test: change jenkins reporter

PR-URL: https://github.com/nodejs/node/pull/56808
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Carlos Espa authored and Michaël Zasso committed 2025-02-05 10:35:23 +01:00
1 parent 7c9fa11127
commit abca97f7e2
2 files changed
+9 -5

No files matched your search

+1 -2
View File
@@ -15,8 +15,7 @@ if (isMainThread) {
loadFixture('pkgexports/no-addons').then(
mustCall((module) => {
const message = module.default;
if (process.execArgv.length === 0) {
if (!process.execArgv.includes('--no-addons')) {
assert.strictEqual(message, 'using native addons');
} else {
assert.strictEqual(message, 'not using native addons');
+8 -3
View File
@@ -316,9 +316,7 @@ class DotsProgressIndicator(SimpleProgressIndicator):
class ActionsAnnotationProgressIndicator(DotsProgressIndicator):
def AboutToRun(self, case):
case.additional_flags = case.additional_flags.copy() if hasattr(case, 'additional_flags') else []
case.additional_flags.append('--test-reporter=./test/common/test-error-reporter.js')
case.additional_flags.append('--test-reporter-destination=stdout')
pass
def GetAnnotationInfo(self, test, output):
traceback = output.stdout + output.stderr
@@ -1448,6 +1446,9 @@ def BuildOptions():
result.add_option("--type",
help="Type of build (simple, fips, coverage)",
default=None)
result.add_option("--error-reporter",
help="use error reporter",
default=True, action="store_true")
return result
@@ -1663,6 +1664,10 @@ def Main():
options.node_args.append("--always-turbofan")
options.progress = "deopts"
if options.error_reporter:
options.node_args.append('--test-reporter=./test/common/test-error-reporter.js')
options.node_args.append('--test-reporter-destination=stdout')
if options.worker:
run_worker = join(workspace, "tools", "run-worker.js")
options.node_args.append(run_worker)