test: Ignore failure when removing routes/rules/dns

In Github CI, the container environment is changed to use tap interface
to hold the default gateway. Nmstate does not support tap interface
which cause failure during verification on pre-test clean up.

Workaround it by ignoring failure on removing routes/rules/dns during
the pre-test setup.

Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2022-07-29 21:42:40 +08:00 committed by Fernando Fernández Mancera
parent f5eb8e907e
commit a14bdcca61

View File

@ -93,7 +93,8 @@ def _remove_dns_route_route_rule():
Route.CONFIG: [{Route.STATE: Route.STATE_ABSENT}],
},
RouteRule.KEY: {RouteRule.CONFIG: []},
}
},
verify_change=False,
)