tests: print compton log after tests finish

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-08-05 00:05:23 +01:00
parent 4dc5a04735
commit c8d6a5cae5
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 3 additions and 1 deletions

View File

@ -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