Skip to content

Commit

Permalink
Merge pull request #845 from SACHIN-BAPPALIGE/cleanup_fadump_testcase
Browse files Browse the repository at this point in the history
Testcase cleanup for timeout and hang
  • Loading branch information
PraveenPenguin authored Jun 6, 2024
2 parents 1cb7606 + c4bd439 commit 89a5010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testcases/PowerNVDump.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def setUp(self):
except AttributeError:
self.url = "http://liquidtelecom.dl.sourceforge.net/project/ebizzy/ebizzy/0.3/ebizzy-0.3.tar.gz"
self.cv_SYSTEM.goto_state(OpSystemState.OS)
res = self.c.run_command("cat /etc/os-release")
res = self.cv_HOST.host_run_command("cat /etc/os-release", timeout=60)
if "Ubuntu" in res[0] or "Ubuntu" in res[1]:
self.distro = "ubuntu"
elif 'Red Hat' in res[0] or 'Red Hat' in res[1]:
Expand Down Expand Up @@ -903,7 +903,7 @@ def setup_nfs(self):
self.c.run_command("sed -i 's/-l -F --message-level/-l --message-level/' /etc/kdump.conf; sync")
self.c.run_command("sed -i '/^path/ s/^#*/#/' /etc/kdump.conf; echo 'path /' >> /etc/kdump.conf; sync")
self.c.run_command("mount -t nfs %s:%s /var/crash" % (self.dump_location, self.dump_path))
self.c.run_command("systemctl restart kdump.service", timeout=180)
self.cv_HOST.host_run_command("systemctl restart kdump.service", timeout=300)
self.c.run_command("fsfreeze -f /boot; fsfreeze -u /boot")
res = self.c.run_command("service kdump status | grep active")
if 'dead' in res:
Expand Down

0 comments on commit 89a5010

Please sign in to comment.