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.
This commit is contained in:
Tobias Brunner
2024-12-11 15:18:09 +01:00
parent 3babf1f710
commit b0fcae3ea1
@@ -43,7 +43,7 @@ rm -f $OUTPUT_DIR/*
# collect networking output # collect networking output
if [ -n "$IPV4" ] if [ -n "$IPV4" ]
then 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 { iptables-save; echo; } >> ${OUTPUT_DIR}/${NAME}.iptables-save
{ {
echo -e '=== filter table ===' echo -e '=== filter table ==='
@@ -58,7 +58,7 @@ fi
if [ -n "$IPV6" ] if [ -n "$IPV6" ]
then 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 ip6tables-save >> ${OUTPUT_DIR}/${NAME}.iptables-save
{ {
echo -e '=== filter table ===' echo -e '=== filter table ==='