summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2021-06-01 21:03:34 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2021-06-01 21:04:20 +0200
commit4ee3e74f398a3d17552407a088a9fffead381954 (patch)
treed3580fb6013c923328621b2e7fdf2d27cead2a4f
parent90bb18bc963d197376437adbd36ced953b17dbf1 (diff)
tests/dummy-xorg-test-runner.sh: Do not delete log files on failure
-rwxr-xr-xtests/dummy-xorg-test-runner.sh5
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