Descriptor: print more testcase info

details: print return code of execute result
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I570TA

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ia8562c5132e99b799e8a358303838d58a90d73f3
This commit is contained in:
wengchangcheng 2022-05-12 09:33:34 +08:00
parent ea081d0d88
commit e0eebea8da

View File

@ -69,6 +69,8 @@ def judge_output(args):
err_str = err.decode('UTF-8')
print(out_str)
print(err_str)
print(">>>>> Expect return: [" + args.expect_output \
+ "]\n>>>>> But got: [" + returncode + "]")
raise RuntimeError("Run [" + cmd + "] failed!")
elif args.expect_sub_output:
err_str = err.decode('UTF-8') # log system use std::cerr