]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle non-zero return codes in rrsetorder test
authorTom Krizek <tkrizek@isc.org>
Mon, 19 Jun 2023 15:02:29 +0000 (17:02 +0200)
committerTom Krizek <tkrizek@isc.org>
Fri, 14 Jul 2023 13:49:16 +0000 (15:49 +0200)
bin/tests/system/rrsetorder/tests.sh

index ddd98629edd660983a7d02875fb876a14e2f8c98..cf8bbd12d371ad94f2c5ef5486d6f0eeec5e7039 100644 (file)
@@ -135,7 +135,7 @@ do
     match=0
     for j in $GOOD_RANDOM
     do
-       eval "diff dig.out.random reference.dig.out.random.good$j >/dev/null && match$j=1 match=1"
+       eval "diff dig.out.random reference.dig.out.random.good$j >/dev/null && match$j=1 match=1 || true"
        if [ $match -eq 1 ]; then break; fi
     done
     if [ $match -eq 0 ]; then ret=1; fi
@@ -244,7 +244,7 @@ do
     match=0
     for j in $GOOD_RANDOM
     do
-       eval "diff dig.out.random reference.dig.out.random.good$j >/dev/null && match$j=1 match=1"
+       eval "diff dig.out.random reference.dig.out.random.good$j >/dev/null && match$j=1 match=1 || true"
        if [ $match -eq 1 ]; then break; fi
     done
     if [ $match -eq 0 ]; then ret=1; fi
@@ -369,7 +369,7 @@ do
     match=0
     for j in $GOOD_RANDOM
     do
-       eval "diff dig.out.random reference.dig.out.random.good$j >/dev/null && match$j=1 match=1"
+       eval "diff dig.out.random reference.dig.out.random.good$j >/dev/null && match$j=1 match=1 || true"
        if [ $match -eq 1 ]; then break; fi
     done
     if [ $match -eq 0 ]; then ret=1; fi
@@ -482,7 +482,7 @@ do
     match=0
     for j in $GOOD_RANDOM
     do
-       eval "diff dig.out.random reference.dig.out.random.good$j >/dev/null && match$j=1 match=1"
+       eval "diff dig.out.random reference.dig.out.random.good$j >/dev/null && match$j=1 match=1 || true"
        if [ $match -eq 1 ]; then break; fi
     done
     if [ $match -eq 0 ]; then ret=1; fi
@@ -524,7 +524,7 @@ do
     match=0
     for j in $GOOD_RANDOM
     do
-       eval "diff dig.out.random reference.dig.out.random.good$j >/dev/null && match$j=1 match=1"
+       eval "diff dig.out.random reference.dig.out.random.good$j >/dev/null && match$j=1 match=1 || true"
        if [ $match -eq 1 ]; then break; fi
     done
     if [ $match -eq 0 ]; then ret=1; fi