]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Ignore errors when dumping our routing table
authorTobias Brunner <tobias@strongswan.org>
Tue, 10 Dec 2024 15:48:40 +0000 (16:48 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 11 Dec 2024 14:18:09 +0000 (15:18 +0100)
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.

testing/hosts/default/usr/local/bin/collect-results

index 8a1230af7ba819fab49e878db2b6173dda50d98d..cba00d771420c229b25808aba9e888bf62bfc5cc 100755 (executable)
@@ -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 ==='