From: Yu Watanabe Date: Fri, 14 Jun 2019 07:45:50 +0000 (+0900) Subject: test-network: suppress error message in cleanup process X-Git-Tag: v243-rc1~285^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5239d7b34e128e102bd18f0c36493eaa5fe96e8e;p=thirdparty%2Fsystemd.git test-network: suppress error message in cleanup process --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index f22fdbe5af7..3b6cb728224 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -184,15 +184,15 @@ def remove_links(links): def remove_fou_ports(ports): for port in ports: - call('ip fou del port', port) + call('ip fou del port', port, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) def remove_routing_policy_rule_tables(tables): for table in tables: - call('ip rule del table', table) + call('ip rule del table', table, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) def remove_routes(routes): for route_type, addr in routes: - call('ip route del', route_type, addr) + call('ip route del', route_type, addr, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) def l2tp_tunnel_remove(tunnel_ids): output = check_output('ip l2tp show tunnel')