Skip to content

Commit

Permalink
Update PowerNVDump.py with review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mahi657 authored May 20, 2024
1 parent 02376f5 commit 8221eec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions testcases/PowerNVDump.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ def setup_pwdless_auth(self):
self.c.run_command(
"ssh-keygen -q -t rsa -f %s -P ''" % self.rsa_path)
self.c.run_command("chmod 400 %s" % self.rsa_path)
(self.dump_server_pw, self.rsa_path, self.dump_server_ip))
self.c.run_command("sshpass -p %s ssh-copy-id -o \"StrictHostKeyChecking no\" -i %s %s@%s" %
(self.dump_server_pw, self.rsa_path, self.dump_server_user, self.dump_server_ip))
except CommandFailed:
Expand Down Expand Up @@ -295,10 +294,7 @@ def verify_dump_file(self, boot_type=BootType.NORMAL, dump_place="local"):
else:
msg = "Dump directory not created"
raise OpTestError(msg)
if self.dump_server_user != 'root':
#cannot delete with normal user since dump dir is owned by root
pass
else:
if self.dump_server_user == 'root':
self.c.run_command("rm -rf /var/crash/%s; sync" % self.crash_content[0])

def verify_fadump_reg(self):
Expand Down

0 comments on commit 8221eec

Please sign in to comment.