From e4f27199d71d971dad5033bff0d1dbf65eb586e3 Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Thu, 22 Sep 2016 08:51:59 +0200 Subject: [PATCH] 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 --- tools/run-tests.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/run-tests.py b/tools/run-tests.py index d624c1543..71ac4262e 100755 --- a/tools/run-tests.py +++ b/tools/run-tests.py @@ -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()