From 9a13182ae10adc14494552ac28f2fbf891f65b27 Mon Sep 17 00:00:00 2001 From: mcgov Date: Mon, 3 Oct 2022 15:00:07 -0700 Subject: [PATCH] proceed with modprobe sequence even if one item returns an error code (#2295) --- lisa/tools/modprobe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisa/tools/modprobe.py b/lisa/tools/modprobe.py index c0a52c848..91cb2656d 100644 --- a/lisa/tools/modprobe.py +++ b/lisa/tools/modprobe.py @@ -99,9 +99,9 @@ class Modprobe(Tool): if self.is_module_loaded(mod_name, force_run=True): self.node.execute( ( - f"modprobe -r {mod_name} && modprobe {mod_name} && " - "ip link set eth0 down && ip link set eth0 up && " - "dhclient -r && dhclient" + f"'modprobe -r {mod_name}; modprobe {mod_name}; " + "ip link set eth0 down ; ip link set eth0 up; " + "dhclient -r; dhclient'" ), sudo=True, shell=True,