Skip to content

Conversation

@saijanani-c
Copy link

No description provided.

Signed-off-by: Sai Janani C <jananic@linux.ibm.com>
Signed-off-by: Sai Janani C <jananic@linux.ibm.com>
@abdhaleegit abdhaleegit self-requested a review January 7, 2026 06:07
@abdhaleegit abdhaleegit self-assigned this Jan 7, 2026
Copy link
Collaborator

@abdhaleegit abdhaleegit left a comment

Choose a reason for hiding this comment

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

@saijanani-c

  1. commit description missing
  2. run Logs missing
  3. please remove sosreport commit form this pr
  4. lot of syntax issue.. please fix

self.fail(f"Errors for above pci addresses: {error}")

def test_spyre_lsvpd_validation(self):
if process.system("vpdupdate", ignore_status=True, shell=True):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Indentation messed up.. please fix it

with open(cls) as f:
if f.read().strip().startswith('0x1200'):
spyre_devices.append(dev)
except Exception:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Reuse the avocado utils get_pci_class method

sysfs_subvendor = self.run_cmd_out(
f"cat /sys/bus/pci/devices/{dev}/subsystem_vendor").strip()
sysfs_subdevice = self.run_cmd_out(
f"cat /sys/bus/pci/devices/{dev}/subsystem_device").strip()
Copy link
Collaborator

Choose a reason for hiding this comment

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

reuse pci utils


spyre_block = []
capture = False
for line in lsvpd_out.splitlines():
Copy link
Collaborator

Choose a reason for hiding this comment

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

indent messed up

self.fail(f"Invalid EC value for Spyre device {dev}")

if not fw_vpd:
self.fail(f"Firmware value missing for Spyre device {dev}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

optimize .. may be loop ?

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.

2 participants