~lattis/muon

f9a8cbad39b665a9496cd3adb4756e85ee5ec97c — Stone Tickle 1 year, 8 months ago 8528398
print stdout/stderr of failing test
1 files changed, 2 insertions(+), 1 deletions(-)

M src/tests.c
M src/tests.c => src/tests.c +2 -1
@@ 56,7 56,8 @@ run_test(struct workspace *wk, void *_ctx, uint32_t t)

	if (cmd_ctx.status && !test->dat.test.should_fail) {
		LOG_E("%s - failed (%d)", wk_objstr(wk, test->dat.test.name), cmd_ctx.status);
		log_plain("%s", cmd_ctx.err);
		LOG_E("stdout: '%s'", cmd_ctx.out);
		LOG_E("stderr: '%s'", cmd_ctx.err);
		goto ret;
	} else {
		LOG_I("%s - success (%d)", wk_objstr(wk, test->dat.test.name), cmd_ctx.status);