tinyyarn

scenario testing of Unix command line tools
Log | Files | Refs | README | LICENSE

commit b13d103099ea0abf93b047610aa72cc9563378d6
parent 3ade39661b183b32b180ae485fed2dcc3dfadc5f
Author: Richard Ipsum <richardipsum@fastmail.co.uk>
Date:   Sat, 22 Jun 2019 22:47:05 +0100

Show location of DATADIR if err occurs with -C set

Diffstat:
Mtyarn.in | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tyarn.in b/tyarn.in @@ -297,8 +297,11 @@ function run_step(scenario_dir, datadir, implementations, scenario_key, step, sh io.stderr:write(string.format('Skipping "%s" because "%s" failed\n', scenario_key, step)) skip_scenario = true else - io.stderr:write(string.format('ERROR: In scenario: "%s" ', scenario_key)) + io.stderr:write(string.format(' ERROR: In scenario: "%s" ', scenario_key)) io.stderr:write(string.format('step "%s" failed with exit code %d\n', step, exit_code)) + if parsed_args["no_cleanup"] then + io.stderr:write(string.format('DATADIR: "%s"\n', datadir)) + end io.stderr:write(string.format("Standard output from shell command:\n%s\n", stdout)) io.stderr:write(string.format("Standard error from shell command:\n%s\n", stderr))