tests: print compton log after tests finish
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
4dc5a04735
commit
c8d6a5cae5
|
@ -6,10 +6,12 @@ fi
|
||||||
echo "Running test $2"
|
echo "Running test $2"
|
||||||
|
|
||||||
# TODO keep the log file, and parse it to see if test is successful
|
# 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=$!
|
compton_pid=$!
|
||||||
$2
|
$2
|
||||||
|
|
||||||
kill -INT $compton_pid
|
kill -INT $compton_pid
|
||||||
|
cat log
|
||||||
|
rm log
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue