From 110ab21dba160b9c00b0aca4a79893235317a1e8 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 24 Oct 2020 17:25:16 +0200 Subject: 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 --- src/tests/test_util.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/tests') 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)) -- cgit v1.2.3