summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-24 17:25:16 +0200
committerChristian Poessinger <christian@poessinger.com>2020-10-24 17:25:16 +0200
commit110ab21dba160b9c00b0aca4a79893235317a1e8 (patch)
tree35bd1bd3b9aa5525318e483432bdebc7fad58c1a /src
parent2343f4bfa0f24c49d8c28b287dc9dd0c601141ff (diff)
downloadvyos-1x-110ab21dba160b9c00b0aca4a79893235317a1e8.tar.gz
vyos-1x-110ab21dba160b9c00b0aca4a79893235317a1e8.zip
Revert "test: vyos.util: add testcase for process_named_running()"
This reverts commit 9939139ba4ad18dc4b62a827d8ab7b74d0c28124. Unfortunately this test does not work within the CI system. It fails with: 17:21:35 ====================================================================== 17:21:35 FAIL: test_process_named_running (test_util.TestVyOSUtil) 17:21:35 ---------------------------------------------------------------------- 17:21:35 Traceback (most recent call last): 17:21:35 File "/var/lib/jenkins/jenkins_slave/workspace/vyos-1x_current/build/src/tests/test_util.py", line 34, in test_process_named_running 17:21:35 self.assertTrue(isinstance(pid, int)) 17:21:35 AssertionError: False is not true As process_named_running() returns None on non existing bash process
Diffstat (limited to 'src')
-rw-r--r--src/tests/test_util.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/test_util.py b/src/tests/test_util.py
index 44122146f..09bf947b8 100644
--- a/src/tests/test_util.py
+++ b/src/tests/test_util.py
@@ -19,6 +19,7 @@ from unittest import TestCase
import vyos.util
+
class TestVyOSUtil(TestCase):
def setUp(self):
pass
@@ -29,6 +30,3 @@ class TestVyOSUtil(TestCase):
new_data = vyos.util.mangle_dict_keys(data, '-', '_')
self.assertEqual(new_data, expected_data)
- def test_process_named_running(self):
- pid = vyos.util.process_named_running('bash')
- self.assertTrue(isinstance(pid, int))