diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2020-02-17 12:44:13 +0000 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-02-26 10:16:49 -0500 |
commit | cf363f563298bafa4dec2ff84a8fe867a8ed0ee7 (patch) | |
tree | 2e1fe1d40270c110fed9ae25a5bf26a310d2f60a /tests/utilities_tests.py | |
parent | e5c64e6135dcc46663183647c068965fbe60e0fd (diff) | |
download | sos-cf363f563298bafa4dec2ff84a8fe867a8ed0ee7.tar.gz |
[tests] look for 'true' in test_exe_file() instead of py script
Use the executable 'true' when testing is_executable() on a
non-absolute path.
Related: #1949
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests/utilities_tests.py')
-rw-r--r-- | tests/utilities_tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/utilities_tests.py b/tests/utilities_tests.py index f1b60e2b..8e1514b0 100644 --- a/tests/utilities_tests.py +++ b/tests/utilities_tests.py @@ -50,8 +50,7 @@ class ExecutableTest(unittest.TestCase): self.assertFalse(is_executable(path)) def test_exe_file(self): - path = os.path.join(TEST_DIR, 'test_exe.py') - self.assertTrue(is_executable(path)) + self.assertTrue(is_executable('true')) def test_exe_file_abs_path(self): self.assertTrue(is_executable("/usr/bin/timeout")) |