From 327640d30a9e295a38da192ebe4afa0fc08092db Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Wed, 23 Oct 2013 11:53:40 +0200 Subject: service: fix service file location The test is started with undeterministic current working directory. --- src/service-dbus/test/testService.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/service-dbus') diff --git a/src/service-dbus/test/testService.py b/src/service-dbus/test/testService.py index 5c02fb5..ed82f84 100644 --- a/src/service-dbus/test/testService.py +++ b/src/service-dbus/test/testService.py @@ -466,7 +466,7 @@ class TestServiceProviderFailingService(unittest.TestCase): """ self.conn = lmishell.connect(HOST, USER, PASSWD) self.assertTrue(isinstance(self.conn, lmishell.LMIConnection), "Couldn't connect to remote provider") - shutil.copy2("failing.service", "/etc/systemd/system/failing.service") + shutil.copy2(os.path.dirname(__file__) + "/failing.service", "/etc/systemd/system/failing.service") subprocess.call ("systemctl daemon-reload".split()) def tearDown(self): -- cgit