Change in vdsm[master]: hostdev tests: fake totalvfs
mpolednik at redhat.com
mpolednik at redhat.com
Wed Jul 15 11:05:39 UTC 2015
Martin Polednik has uploaded a new change for review.
Change subject: hostdev tests: fake totalvfs
......................................................................
hostdev tests: fake totalvfs
Deep down in call stack, _sriov_totalvfs is called. We should avoid
touching the host at all due to possible side effects, and therefore
_fake_totalvfs can be used.
Change-Id: I6b7097b0e89ca79848c9e56f526692322e759f6d
Signed-off-by: Martin Polednik <mpolednik at redhat.com>
---
M tests/hostdevTests.py
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/52/43652/1
diff --git a/tests/hostdevTests.py b/tests/hostdevTests.py
index e7270ca..14f6f65 100644
--- a/tests/hostdevTests.py
+++ b/tests/hostdevTests.py
@@ -378,6 +378,7 @@
@expandPermutations
@MonkeyClass(libvirtconnection, 'get', Connection)
+ at MonkeyClass(hostdev, '_sriov_totalvfs', _fake_totalvfs)
class HostdevCreationTests(XMLTestCase):
def setUp(self):
--
To view, visit https://gerrit.ovirt.org/43652
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b7097b0e89ca79848c9e56f526692322e759f6d
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Polednik <mpolednik at redhat.com>
More information about the vdsm-patches
mailing list