aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2020-02-17 12:44:13 +0000
committerJake Hunsaker <jhunsake@redhat.com>2020-02-26 10:16:49 -0500
commitcf363f563298bafa4dec2ff84a8fe867a8ed0ee7 (patch)
tree2e1fe1d40270c110fed9ae25a5bf26a310d2f60a /tests
parente5c64e6135dcc46663183647c068965fbe60e0fd (diff)
downloadsos-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')
-rw-r--r--tests/utilities_tests.py3
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"))