mirror of https://github.com/ARMmbed/mbed-os.git
Move exception in two lines that traceback looks better
parent
55336b034d
commit
b8b11f0c8b
|
@ -172,9 +172,9 @@ def icetea_tests(target, tcdir, verbose):
|
||||||
stdout, stderr, returncode = run_cmd(command)
|
stdout, stderr, returncode = run_cmd(command)
|
||||||
|
|
||||||
if returncode != 0:
|
if returncode != 0:
|
||||||
raise Exception(
|
additional_information = "\ncwd:{} \nCommand:'{}' \noutput:{}".format(os.getcwd(), ' '.join(command),
|
||||||
"Error when running icetea. \ncwd:{} \nCommand:'{}' \noutput:{}".format(os.getcwd(), ' '.join(command),
|
stderr.decode())
|
||||||
stderr.decode()))
|
raise Exception("Error when running icetea. {}".format(additional_information))
|
||||||
|
|
||||||
return json.loads(stdout)
|
return json.loads(stdout)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue