Skip to content

Commit c4bd439

Browse files
author
Sachin P Bappalige
committed
Testcase cleanup for timeout and hang
Signed-off-by: Sachin P Bappalige <[email protected]>
1 parent ff538b4 commit c4bd439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testcases/PowerNVDump.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def setUp(self):
123123
except AttributeError:
124124
self.url = "http://liquidtelecom.dl.sourceforge.net/project/ebizzy/ebizzy/0.3/ebizzy-0.3.tar.gz"
125125
self.cv_SYSTEM.goto_state(OpSystemState.OS)
126-
res = self.c.run_command("cat /etc/os-release")
126+
res = self.cv_HOST.host_run_command("cat /etc/os-release", timeout=60)
127127
if "Ubuntu" in res[0] or "Ubuntu" in res[1]:
128128
self.distro = "ubuntu"
129129
elif 'Red Hat' in res[0] or 'Red Hat' in res[1]:
@@ -895,7 +895,7 @@ def setup_nfs(self):
895895
self.c.run_command("sed -i 's/-l -F --message-level/-l --message-level/' /etc/kdump.conf; sync")
896896
self.c.run_command("sed -i '/^path/ s/^#*/#/' /etc/kdump.conf; echo 'path /' >> /etc/kdump.conf; sync")
897897
self.c.run_command("mount -t nfs %s:%s /var/crash" % (self.dump_location, self.dump_path))
898-
self.c.run_command("systemctl restart kdump.service", timeout=180)
898+
self.cv_HOST.host_run_command("systemctl restart kdump.service", timeout=300)
899899
self.c.run_command("fsfreeze -f /boot; fsfreeze -u /boot")
900900
res = self.c.run_command("service kdump status | grep active")
901901
if 'dead' in res:

0 commit comments

Comments
 (0)