projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a38a52
)
btrfs-progs: tests: add script to scan results for some known runtime errors
author
David Sterba
<dsterba@suse.com>
Fri, 23 Sep 2016 13:51:28 +0000
(15:51 +0200)
committer
David Sterba
<dsterba@suse.com>
Mon, 3 Oct 2016 13:07:21 +0000
(15:07 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
tests/scan-results.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/tests/scan-results.sh
b/tests/scan-results.sh
new file mode 100755
(executable)
index 0000000..
743b968
--- /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