From c8d6a5cae50391e457de41305f74fe1e9775c7c2 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 5 Aug 2019 00:05:23 +0100 Subject: [PATCH] tests: print compton log after tests finish Signed-off-by: Yuxuan Shui --- tests/run_one_test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/run_one_test.sh b/tests/run_one_test.sh index 0b86e22..978f158 100755 --- a/tests/run_one_test.sh +++ b/tests/run_one_test.sh @@ -6,10 +6,12 @@ fi echo "Running test $2" # TODO keep the log file, and parse it to see if test is successful -($1 --experimental-backends --backend dummy --log-level=debug --log-file=/dev/null) & +($1 --experimental-backends --backend dummy --log-level=debug --log-file=$PWD/log) & compton_pid=$! $2 kill -INT $compton_pid +cat log +rm log