diff options
author | David Sterba <dsterba@suse.com> | 2016-09-23 15:51:28 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-10-03 15:07:21 +0200 |
commit | 8d8de7c2e59e31def84e04d49e2ec09aeb1f07cd (patch) | |
tree | 86e5ee472529d96ef1cdc12641fc8dd0c5dbd043 | |
parent | 5a38a52194221743e071d819ea3c026f2c7de4b8 (diff) |
btrfs-progs: tests: add script to scan results for some known runtime errors
Signed-off-by: David Sterba <dsterba@suse.com>
-rwxr-xr-x | tests/scan-results.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/scan-results.sh b/tests/scan-results.sh new file mode 100755 index 00000000..743b968b --- /dev/null +++ b/tests/scan-results.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# look for some error messages in all test logs + +for i in *.txt; do + echo "Scanning $i" + last= + while read line; do + case "$line" in + ===\ Entering*) last="$line" ;; + *Assertion*failed*) echo "ASSERTION FAILED: $last" ;; + *runtime\ error*) echo "RUNTIME ERROR (sanitizer): $last" ;; + *) : ;; + esac + done < "$i" +done |