Skip to content

The test_system_health.py:test_external_checker always test failure. #7123

@roger530-ho

Description

@roger530-ho

Due to PR(sonic-net/sonic-buildimage#12572) changes utils.py:run_command behavior, so that the system_health/test_system_health.py:test_external_checker always test failure. I try to add code to show the error message as below.

root@sonic:/home/admin# /usr/local/bin/healthd
[Errno 2] No such file or directory: 'cat /tmp/mock_valid_external_checker.txt'

Steps to reproduce the issue:
1.
2.
3.

Describe the results you received:

Describe the results you expected:

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