Skip to content

Commit 89a5010

Browse files
Merge pull request #845 from SACHIN-BAPPALIGE/cleanup_fadump_testcase
Testcase cleanup for timeout and hang
2 parents 1cb7606 + c4bd439 commit 89a5010

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
@@ -124,7 +124,7 @@ def setUp(self):
124124
except AttributeError:
125125
self.url = "http://liquidtelecom.dl.sourceforge.net/project/ebizzy/ebizzy/0.3/ebizzy-0.3.tar.gz"
126126
self.cv_SYSTEM.goto_state(OpSystemState.OS)
127-
res = self.c.run_command("cat /etc/os-release")
127+
res = self.cv_HOST.host_run_command("cat /etc/os-release", timeout=60)
128128
if "Ubuntu" in res[0] or "Ubuntu" in res[1]:
129129
self.distro = "ubuntu"
130130
elif 'Red Hat' in res[0] or 'Red Hat' in res[1]:
@@ -903,7 +903,7 @@ def setup_nfs(self):
903903
self.c.run_command("sed -i 's/-l -F --message-level/-l --message-level/' /etc/kdump.conf; sync")
904904
self.c.run_command("sed -i '/^path/ s/^#*/#/' /etc/kdump.conf; echo 'path /' >> /etc/kdump.conf; sync")
905905
self.c.run_command("mount -t nfs %s:%s /var/crash" % (self.dump_location, self.dump_path))
906-
self.c.run_command("systemctl restart kdump.service", timeout=180)
906+
self.cv_HOST.host_run_command("systemctl restart kdump.service", timeout=300)
907907
self.c.run_command("fsfreeze -f /boot; fsfreeze -u /boot")
908908
res = self.c.run_command("service kdump status | grep active")
909909
if 'dead' in res:

0 commit comments

Comments
 (0)