зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1721291 - Report jsapi-tests failures with more than just the result code. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D120294
This commit is contained in:
Родитель
152604b0fb
Коммит
0df8aa085c
|
@ -176,7 +176,7 @@ class AddTest(MachCommandBase):
|
||||||
doc=None,
|
doc=None,
|
||||||
overwrite=False,
|
overwrite=False,
|
||||||
editor=MISSING_ARG,
|
editor=MISSING_ARG,
|
||||||
**kwargs
|
**kwargs,
|
||||||
):
|
):
|
||||||
import addtest
|
import addtest
|
||||||
import io
|
import io
|
||||||
|
@ -437,7 +437,7 @@ class Test(MachCommandBase):
|
||||||
suite["mach_command"],
|
suite["mach_command"],
|
||||||
command_context._mach_context,
|
command_context._mach_context,
|
||||||
argv=extra_args,
|
argv=extra_args,
|
||||||
**kwargs
|
**kwargs,
|
||||||
)
|
)
|
||||||
if res:
|
if res:
|
||||||
status = res
|
status = res
|
||||||
|
@ -464,7 +464,7 @@ class Test(MachCommandBase):
|
||||||
command_context._mach_context,
|
command_context._mach_context,
|
||||||
argv=extra_args,
|
argv=extra_args,
|
||||||
test_objects=tests,
|
test_objects=tests,
|
||||||
**kwargs
|
**kwargs,
|
||||||
)
|
)
|
||||||
if res:
|
if res:
|
||||||
status = res
|
status = res
|
||||||
|
@ -683,7 +683,10 @@ class SpiderMonkeyTests(MachCommandBase):
|
||||||
test_env = os.environ.copy()
|
test_env = os.environ.copy()
|
||||||
test_env["TOPSRCDIR"] = command_context.topsrcdir
|
test_env["TOPSRCDIR"] = command_context.topsrcdir
|
||||||
|
|
||||||
return subprocess.call(jsapi_tests_cmd, env=test_env)
|
result = subprocess.call(jsapi_tests_cmd, env=test_env)
|
||||||
|
if result != 0:
|
||||||
|
print(f"jsapi-tests failed, exit code {result}")
|
||||||
|
return result
|
||||||
|
|
||||||
def run_check_js_msg(self, command_context):
|
def run_check_js_msg(self, command_context):
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
Загрузка…
Ссылка в новой задаче