-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpTestPstore.py:This patch checks for new files creation under /sys/fs/pstore #584
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
testcases/OpTestPstore.py
Outdated
1. Check Pstore is configured properly or not | ||
2. Trigger crash. | ||
3. Check new files are created or not under /sys/fs/pstore | ||
4. Enable FADUMP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you doing this in pstore test case path?
testcases/OpTestPstore.py
Outdated
# | ||
# OpenPOWER Automated Test Project | ||
# | ||
# Contributors Listed Below - COPYRIGHT 2017 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2020?
testcases/OpTestPstore.py
Outdated
res = self.con.run_command( "cat /boot/config-`uname -r` | grep -i --color=never 'CONFIG_PSTORE=y'") | ||
print(res) | ||
if(res[0]!='CONFIG_PSTORE=y'): | ||
self.fail("PSTORE is not configured") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we load pstore
as module?
testcases/OpTestPstore.py
Outdated
self.con = self.cv_SYSTEM.console | ||
self.c = self.cv_SYSTEM.cv_HOST.get_ssh_connection() | ||
|
||
def pstore_check(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better pstore_config_check?
testcases/OpTestPstore.py
Outdated
|
||
def kernel_crash(self): | ||
#1. This function will trigger a Crash | ||
#2. Check for lpar or baremetal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably you should check this before crashing (may be as part of setup).
testcases/OpTestPstore.py
Outdated
else: | ||
print("New file %s is not created" % i) | ||
|
||
def setup_fadump(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think fadump stuff should be included in this file.
print("Fadump service is not configured properly") | ||
|
||
class KernelCrash_Kdump(OpTestKernelBase): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why kdump stuff is coming here. We already have multiple files/classes doing kdump/fadump stuff.
testcases/OpTestPstore.py
Outdated
self.kernel_crash() | ||
|
||
|
||
def crash_suite(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need crash_suite
here ?
8994b3b
to
074fd55
Compare
After addressing the above comments, Changed the testcase according to that |
…s/pstore After triggering crash with kdump, it checks for new files creation under /sys/fs/pstore Signed-off-by: shirisha Ganta <[email protected]>
4d0cb14
to
b976629
Compare
After triggering crash with kdump it checks for
new files creation under /sys/fs/pstore
Signed-off-by: shirisha Ganta [email protected]