Change in vdsm[master]: ioprocess: Have tests check ioprocess and not RHF

smizrahi at redhat.com smizrahi at redhat.com
Mon Oct 13 14:40:49 UTC 2014


Saggi Mizrahi has uploaded a new change for review.

Change subject: ioprocess: Have tests check ioprocess and not RHF
......................................................................

ioprocess: Have tests check ioprocess and not RHF

Change-Id: I0181512d0f09327d985e26de890e9a6e6863e7cf
Signed-off-by: Saggi Mizrahi <smizrahi at redhat.com>
---
M tests/outOfProcessTests.py
1 file changed, 2 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/83/34083/1

diff --git a/tests/outOfProcessTests.py b/tests/outOfProcessTests.py
index e314197..e49930f 100644
--- a/tests/outOfProcessTests.py
+++ b/tests/outOfProcessTests.py
@@ -26,6 +26,7 @@
 
 class OopWrapperTests(TestCaseBase):
     def setUp(self):
+        oop.setDefaultImpl(oop.IOPROC)
         self.pool = oop.getGlobalProcPool()
 
     def testEcho(self):
@@ -34,7 +35,7 @@
                   real discretion."""
         # Henry Steele Commager
 
-        self.assertEquals(self.pool.echo(data), data)
+        self.assertEquals(self.pool._ioproc.echo(data), data)
 
     def testFileUtilsCall(self):
         """fileUtils is a custom module and calling it might break even though
@@ -45,9 +46,6 @@
     def testSubModuleCall(self):
         path = "/dev/null"
         self.assertEquals(self.pool.os.path.exists(path), True)
-
-    def testModuleCall(self):
-        self.assertNotEquals(self.pool.os.getpid(), os.getpid())
 
     def testUtilsFuncs(self):
         tmpfd, tmpfile = tempfile.mkstemp()


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0181512d0f09327d985e26de890e9a6e6863e7cf
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <smizrahi at redhat.com>


More information about the vdsm-patches mailing list