Change in vdsm[master]: vm tests: avoid leaving /tmp/blechs.recovery behind

danken at redhat.com danken at redhat.com
Fri Mar 28 16:06:25 UTC 2014


Dan Kenigsberg has uploaded a new change for review.

Change subject: vm tests: avoid leaving /tmp/blechs.recovery behind
......................................................................

vm tests: avoid leaving /tmp/blechs.recovery behind

There's code that expects P_VDSM_VAR_RUN to end with a slash.

Change-Id: I73e7628be87692d17a6a5f629c3370df37e22dc8
Signed-off-by: Dan Kenigsberg <danken at redhat.com>
---
M tests/vmTests.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/97/26197/1

diff --git a/tests/vmTests.py b/tests/vmTests.py
index 91bbefb..3f6f695 100644
--- a/tests/vmTests.py
+++ b/tests/vmTests.py
@@ -699,7 +699,7 @@
 @contextmanager
 def FakeVM(params=None):
     with namedTemporaryDir() as tmpDir:
-        with MonkeyPatchScope([(constants, 'P_VDSM_RUN', tmpDir),
+        with MonkeyPatchScope([(constants, 'P_VDSM_RUN', tmpDir + '/'),
                                (libvirtconnection, 'get',
                                 lambda x: ConnectionMock())]):
             vmParams = {'vmId': 'TESTING'}


-- 
To view, visit http://gerrit.ovirt.org/26197
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I73e7628be87692d17a6a5f629c3370df37e22dc8
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dan Kenigsberg <danken at redhat.com>


More information about the vdsm-patches mailing list