From: Tobias Brunner Date: Tue, 10 Dec 2024 15:48:40 +0000 (+0100) Subject: testing: Ignore errors when dumping our routing table X-Git-Tag: android-2.5.3~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0fcae3ea17dd5099b456d146bebe223a8a46f94;p=thirdparty%2Fstrongswan.git testing: Ignore errors when dumping our routing table Some scenarios disable route installation and if they are executed before any scenarios that don't, there won't be a rule for table 220 and we get "FIB table does not exist" errors. --- diff --git a/testing/hosts/default/usr/local/bin/collect-results b/testing/hosts/default/usr/local/bin/collect-results index 8a1230af7b..cba00d7714 100755 --- a/testing/hosts/default/usr/local/bin/collect-results +++ b/testing/hosts/default/usr/local/bin/collect-results @@ -43,7 +43,7 @@ rm -f $OUTPUT_DIR/* # collect networking output if [ -n "$IPV4" ] then - { ip route list table $ROUTING_TABLE; echo; } >> ${OUTPUT_DIR}/${NAME}.ip.route + { ip route list table $ROUTING_TABLE; echo; } >> ${OUTPUT_DIR}/${NAME}.ip.route 2>/dev/null { iptables-save; echo; } >> ${OUTPUT_DIR}/${NAME}.iptables-save { echo -e '=== filter table ===' @@ -58,7 +58,7 @@ fi if [ -n "$IPV6" ] then - ip -6 route list table $ROUTING_TABLE >> ${OUTPUT_DIR}/${NAME}.ip.route + ip -6 route list table $ROUTING_TABLE >> ${OUTPUT_DIR}/${NAME}.ip.route 2>/dev/null ip6tables-save >> ${OUTPUT_DIR}/${NAME}.iptables-save { echo -e '=== filter table ==='