diff options
Diffstat (limited to 'src/service-dbus')
-rw-r--r-- | src/service-dbus/test/testService.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/service-dbus/test/testService.py b/src/service-dbus/test/testService.py index d06e3da..6c28df4 100644 --- a/src/service-dbus/test/testService.py +++ b/src/service-dbus/test/testService.py @@ -468,7 +468,11 @@ class TestServiceProviderFailingService(unittest.TestCase): subprocess.call ("systemctl daemon-reload".split()) def tearDown(self): - os.unlink ("/etc/systemd/system/failing.service") + try: + os.unlink ("/etc/systemd/system/failing.service") + except OSError: + # failing.service may be removed by test_service_race_condition + pass subprocess.call ("systemctl daemon-reload".split()) def test_failing_service_start_stop(self): |