From 469d7918c0306228b4162cd530d321b3ac14d5cd Mon Sep 17 00:00:00 2001 From: Amos Kong Date: Wed, 26 Mar 2014 15:26:45 +0800 Subject: [PATCH] netperf: ignore error in environment setup Signed-off-by: Amos Kong --- generic/tests/netperf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/tests/netperf.py b/generic/tests/netperf.py index 67dc3f47..f680b2c8 100644 --- a/generic/tests/netperf.py +++ b/generic/tests/netperf.py @@ -81,8 +81,8 @@ def run(test, params, env): """ def env_setup(session, ip, user, port, password): error.context("Setup env for %s" % ip) - ssh_cmd(session, "iptables -F; true") - ssh_cmd(session, "service iptables stop; true") + ssh_cmd(session, "iptables -F", ignore_status=True) + ssh_cmd(session, "service iptables stop", ignore_status=True) ssh_cmd(session, "echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore") download_link = params.get("netperf_download_link") -- GitLab