]> 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:45:56 +0000 (09:45 +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'.

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

index c59a3e2cfdcabfbce0dfbabff834f113bb2c6889..0d291a4b010726b35189baa4f8046c92fc841e69 100644 (file)
@@ -252,7 +252,7 @@ else
 fi
 
 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 dbd8684c694698969fa9da54f02eabf674a0bcc7..33e6fc2c74a11fbeba13231c05840f891e414810 100644 (file)
@@ -61,7 +61,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}"