Skip to content

OpTestPstore.py:This patch checks for new files creation under /sys/fs/pstore#584

Open
shirishaganta wants to merge 1 commit into
open-power:masterfrom
shirishaganta:pstore
Open

OpTestPstore.py:This patch checks for new files creation under /sys/fs/pstore#584
shirishaganta wants to merge 1 commit into
open-power:masterfrom
shirishaganta:pstore

Conversation

@shirishaganta
Copy link
Copy Markdown

@shirishaganta shirishaganta commented Apr 2, 2020

After triggering crash with kdump it checks for
new files creation under /sys/fs/pstore

Signed-off-by: shirisha Ganta shiganta@in.ibm.com

@ruscur
Copy link
Copy Markdown
Collaborator

ruscur commented Apr 2, 2020

Can one of the admins verify this patch?

Comment thread 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
Copy link
Copy Markdown

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?

Comment thread testcases/OpTestPstore.py Outdated
#
# OpenPOWER Automated Test Project
#
# Contributors Listed Below - COPYRIGHT 2017
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2020?

Comment thread 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")
Copy link
Copy Markdown

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?

Comment thread testcases/OpTestPstore.py Outdated
self.con = self.cv_SYSTEM.console
self.c = self.cv_SYSTEM.cv_HOST.get_ssh_connection()

def pstore_check(self):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better pstore_config_check?

Comment thread testcases/OpTestPstore.py Outdated

def kernel_crash(self):
#1. This function will trigger a Crash
#2. Check for lpar or baremetal
Copy link
Copy Markdown

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).

Comment thread testcases/OpTestPstore.py Outdated
else:
print("New file %s is not created" % i)

def setup_fadump(self):
Copy link
Copy Markdown

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.

Comment thread testcases/OpTestPstore.py
print("Fadump service is not configured properly")

class KernelCrash_Kdump(OpTestKernelBase):

Copy link
Copy Markdown

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.

Comment thread testcases/OpTestPstore.py Outdated
self.kernel_crash()


def crash_suite():
Copy link
Copy Markdown

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 ?

@shirishaganta shirishaganta force-pushed the pstore branch 2 times, most recently from 8994b3b to 074fd55 Compare April 5, 2020 10:59
@shirishaganta
Copy link
Copy Markdown
Author

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 <shiganta@in.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants