diff options
Diffstat (limited to 'scripts/vsp-lib.sh')
-rwxr-xr-x | scripts/vsp-lib.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index 0f3992a..0ecdf9a 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -1080,12 +1080,18 @@ test_init() { test_start() { echo "Testing $1" | ./logger.sh >> $logfile echo -n "Testing $1: " >&2 + + # Store the marker for the last line of the kernel log. + marker=$(dmesg | tail -n 1 | sed 's/^\[\([^]]*\)\].*/\1/g') } test_complete() { echo "Done: $1" | ./logger.sh >> $logfile echo $1 >&2 + # Capture the part of the kernel log relative to the test. + dmesg | sed "1,/$marker/d" | ./logger.sh kernel >> $logfile + rm -f ${frames_dir}frame-*.bin rm -f ${frames_dir}histo-*.bin rm -f ${frames_dir}rpf.*.bin |