diff options
author | Jan Safranek <jsafrane@redhat.com> | 2013-10-23 11:53:40 +0200 |
---|---|---|
committer | Jan Safranek <jsafrane@redhat.com> | 2013-10-23 11:53:40 +0200 |
commit | 327640d30a9e295a38da192ebe4afa0fc08092db (patch) | |
tree | 5612a5ffa7106473d35939eda07dd381157ace87 | |
parent | eb8bbf58ede68ca3cd35a91e9b0ffd15d649fc3d (diff) | |
download | openlmi-providers-327640d30a9e295a38da192ebe4afa0fc08092db.tar.gz openlmi-providers-327640d30a9e295a38da192ebe4afa0fc08092db.tar.xz openlmi-providers-327640d30a9e295a38da192ebe4afa0fc08092db.zip |
service: fix service file location
The test is started with undeterministic current working directory.
-rw-r--r-- | src/service-dbus/test/testService.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |