diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2021-06-01 21:03:34 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2021-06-01 21:04:20 +0200 |
| commit | 4ee3e74f398a3d17552407a088a9fffead381954 (patch) | |
| tree | d3580fb6013c923328621b2e7fdf2d27cead2a4f | |
| parent | 90bb18bc963d197376437adbd36ced953b17dbf1 (diff) | |
tests/dummy-xorg-test-runner.sh: Do not delete log files on failure
| -rwxr-xr-x | tests/dummy-xorg-test-runner.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/dummy-xorg-test-runner.sh b/tests/dummy-xorg-test-runner.sh index 93e5ac634..a4808f80a 100755 --- a/tests/dummy-xorg-test-runner.sh +++ b/tests/dummy-xorg-test-runner.sh @@ -54,7 +54,10 @@ function do_cleanup() { if [ -n "$x_pid" ] && (kill -0 $x_pid &> /dev/null); then kill $x_pid; fi rm $conffile - rm $logfile* + + if [[ "$ret_val" == 0 ]]; then + rm $logfile* + fi } trap "do_cleanup; exit 1" SIGHUP SIGINT SIGSEGV SIGTERM |
