]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make sure .txt files are not identified as crashed test
authorMichal Nowak <mnowak@isc.org>
Mon, 3 Aug 2020 06:36:05 +0000 (08:36 +0200)
committerMichal Nowak <mnowak@isc.org>
Wed, 12 Aug 2020 07:56:16 +0000 (09:56 +0200)
Previously .txt files with full backtrace may be identified as a
crashed test:

    I:Core dumps were found for the following system tests:
    I:  core.19948-backtrace.txt
    I:   shutdown

Now .txt files are removed from the list.

Change 'run.sh.in' to match the core matching pattern in
'testsummary.sh'.

(cherry picked from commit c2dcd9596697e768626d9cbc417467e399ceae3e)
(cherry picked from commit 01119ac4f97b492ed2a87fdedabd739a33513d5c)

bin/tests/system/run.sh
bin/tests/system/testsummary.sh

index 7ec4b2d0233bfeaf262a12749766f53051ed4981..aa0648ff368d02e1a7ba15e03dc79dc2a4b2ef6e 100755 (executable)
@@ -196,7 +196,7 @@ $PERL stop.pl $systest
 status=`expr $status + $?`
 
 get_core_dumps() {
-    find "$systest/" \( -name 'core*' -or -name '*.core' \) ! -name '*.gz' ! -name '*.txt' | sort
+    find "$systest/" \( -name 'core' -or -name 'core.*' -or -name '*.core' \) ! -name '*.gz' ! -name '*.txt' | sort
 }
 
 core_dumps=$(get_core_dumps | tr '\n' ' ')
index 6089b1677085a1613a5f45f05214ce6ffaf1fabb..3304e81f22c9f3cad294b416b46ef150bfc622dc 100644 (file)
@@ -56,7 +56,7 @@ if [ -n "${FAILED_TESTS}" ]; then
        status=1
 fi
 
-CRASHED_TESTS=`find . -name 'core*' -or -name '*.core' | cut -d'/' -f2 | sort -u | sed -e 's/^/I:      /'`
+CRASHED_TESTS=$(find . \( -name 'core' -or -name 'core.*' -or -name '*.core' \) ! -name '*.txt' | cut -d'/' -f2 | sort -u | sed -e 's/^/I:      /')
 if [ -n "${CRASHED_TESTS}" ]; then
        echoinfo "I:Core dumps were found for the following system tests:"
        echoinfo "${CRASHED_TESTS}"