Change in vdsm[master]: tests: ppc: fully fake arch for recovert tests

fromani at redhat.com fromani at redhat.com
Thu Sep 18 06:22:50 UTC 2014


Francesco Romani has uploaded a new change for review.

Change subject: tests: ppc: fully fake arch for recovert tests
......................................................................

tests: ppc: fully fake arch for recovert tests

In commit 8d03325348 we added a new recovery
test, which will work on PPC64 as well as on
X86_64, with basic unit tests.

The tests were supposed to fake the underlying
architecture, but they didn't fully.
This patch completes the job.

Change-Id: Ia8d6e8ccd9a6fb4dec16c547ab2eaa7d33287ba0
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M tests/vmTests.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/28/33028/1

diff --git a/tests/vmTests.py b/tests/vmTests.py
index 41539f7..ff800aa 100644
--- a/tests/vmTests.py
+++ b/tests/vmTests.py
@@ -1701,7 +1701,8 @@
     @permutations([[caps.Architecture.X86_64], [caps.Architecture.PPC64]])
     def testGetVDSMDomains(self, arch):
         with MonkeyPatchScope([(vm, '_listDomains',
-                                lambda: self._buildAllDomains(arch))]):
+                                lambda: self._buildAllDomains(arch)),
+                               (caps, 'getTargetArch', lambda: arch)]):
             self.assertEqual([v.UUIDString() for v in vm.getVDSMDomains()],
                              self._getAllDomainIds(arch))
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia8d6e8ccd9a6fb4dec16c547ab2eaa7d33287ba0
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>


More information about the vdsm-patches mailing list