Skip to content

[sensors] Sensors test is failing as a result of bad PR merged #2444

@shlomibitton

Description

@shlomibitton

Description

Sensors test is failing after merging a bad PR:
#2255
The change causing the test to fail as a result of sysfs paths are "is not exist" even if they are.

Steps to reproduce the issue:

  1. Run sensors test.
  2. Observer "is not exist" failures.

Describe the results you received:

For example 'PMB-1' values:

E "Path pmbus-i2c-5-41/PMB-1 0.9V VCORE Rail Curr (out)/curr2_crit_alarm is not exist",
E "Path pmbus-i2c-5-41/PMB-1 0.9V VCORE Rail Curr (out)/curr2_lcrit_alarm is not exist",
E "Path pmbus-i2c-5-41/PMB-1 0.9V VCORE Rail Curr (out)/curr2_max_alarm is not exist",
E "Path pmbus-i2c-5-41/PMB-1 PSU 12V Rail (in)/in1_crit_alarm is not exist",
E "Path pmbus-i2c-5-41/PMB-1 PSU 12V Rail (in)/in1_lcrit_alarm is not exist",
E "Path pmbus-i2c-5-41/PMB-1 PSU 12V Rail (in)/in1_max_alarm is not exist",
E "Path pmbus-i2c-5-41/PMB-1 PSU 12V Rail (in)/in1_min_alarm is not exist",
E "Path pmbus-i2c-5-41/PMB-1 0.9V VCORE Rail (out)/in2_crit_alarm is not exist",
E "Path pmbus-i2c-5-41/PMB-1 0.9V VCORE Rail (out)/in2_lcrit_alarm is not exist",
E "Path pmbus-i2c-5-41/PMB-1 0.9V VCORE Rail (out)/in2_max_alarm is not exist",
E "Path pmbus-i2c-5-41/PMB-1 0.9V VCORE Rail (out)/in2_min_alarm is not exist",

Describe the results you expected:
Test should pass.

Additional information you deem important:

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions