diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2020-02-17 12:41:17 +0000 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-02-26 10:16:49 -0500 |
commit | e5c64e6135dcc46663183647c068965fbe60e0fd (patch) | |
tree | 6b4b01308ea7faf7d77abcca102371949a3f24d9 | |
parent | c90dd7db30df2e8073d62d4d5d65f81f89962252 (diff) | |
download | sos-e5c64e6135dcc46663183647c068965fbe60e0fd.tar.gz |
[policies] Set a basic path in sos.policies.Policy
The PATH has been controlled by policy for some time. This is
also used in the test suite which for performance reasons will
often instantiate an abstract policy like LinuxPolicy to avoid
costly repeat initialisation. Historically this has meant that
the policy was set up with an empty PATH environment variable.
This causes problems if the test suite attempts to resolve
executable names via PATH (e.g. to test the is_executable() fn).
Related: #1949
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/policies/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py index 065e8de4..ed3f0cc1 100644 --- a/sos/policies/__init__.py +++ b/sos/policies/__init__.py @@ -456,7 +456,7 @@ any third party. vendor = "Unknown" vendor_url = "http://www.example.com/" vendor_text = "" - PATH = "" + PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" default_scl_prefix = "" name_pattern = 'legacy' presets = {"": PresetDefaults()} |