summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2013-10-23 11:53:40 +0200
committerJan Safranek <jsafrane@redhat.com>2013-10-23 11:53:40 +0200
commit327640d30a9e295a38da192ebe4afa0fc08092db (patch)
tree5612a5ffa7106473d35939eda07dd381157ace87
parenteb8bbf58ede68ca3cd35a91e9b0ffd15d649fc3d (diff)
downloadopenlmi-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.py2
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):