mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Echo executed test commands in run-tests.py (#1372)
run-tests.py used to echo the build commands it executed, but did not behave the same way when it executed test commands. To make its behavior more traceable, this patch adds echo for test commands as well. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
parent
ee2e159ad6
commit
e4f27199d7
@ -118,6 +118,8 @@ def create_binary(buildoptions):
|
||||
return 0
|
||||
|
||||
def run_check(runnable):
|
||||
sys.stderr.write('Test command: %s\n' % ' '.join(runnable))
|
||||
|
||||
try:
|
||||
ret = subprocess.check_call(runnable)
|
||||
except subprocess.CalledProcessError as e:
|
||||
@ -190,16 +192,16 @@ def main():
|
||||
ret = run_check([SIGNED_OFF_SCRIPT, '--travis'])
|
||||
|
||||
if not ret and (script_args.all or script_args.check_signed_off):
|
||||
ret = run_check(SIGNED_OFF_SCRIPT)
|
||||
ret = run_check([SIGNED_OFF_SCRIPT])
|
||||
|
||||
if not ret and (script_args.all or script_args.check_cppcheck):
|
||||
ret = run_check(CPPCHECK_SCRIPT)
|
||||
ret = run_check([CPPCHECK_SCRIPT])
|
||||
|
||||
if not ret and (script_args.all or script_args.check_vera):
|
||||
ret = run_check(VERA_SCRIPT)
|
||||
ret = run_check([VERA_SCRIPT])
|
||||
|
||||
if not ret and (script_args.all or script_args.check_license):
|
||||
ret = run_check(LICENSE_SCRIPT)
|
||||
ret = run_check([LICENSE_SCRIPT])
|
||||
|
||||
if not ret and (script_args.all or script_args.jerry_tests):
|
||||
ret = run_jerry_tests()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user