Change in vdsm[master]: tests: Stress test the loop leak fix
nsoffer at redhat.com
nsoffer at redhat.com
Tue Jan 12 18:43:39 UTC 2016
Nir Soffer has uploaded a new change for review.
Change subject: tests: Stress test the loop leak fix
......................................................................
tests: Stress test the loop leak fix
Use permutations for running the fixed tests 100 times for each run.
Change-Id: If5da6cc38d4f3ce5d430f89ffe0b06ce47e62ff0
Signed-off-by: Nir Soffer <nsoffer at redhat.com>
---
M tests/mountTests.py
1 file changed, 6 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/48/51748/1
diff --git a/tests/mountTests.py b/tests/mountTests.py
index f481ae2..e95f9ba 100644
--- a/tests/mountTests.py
+++ b/tests/mountTests.py
@@ -120,8 +120,11 @@
self.assertNotEqual(hash(m1), hash(m2))
+ at expandPermutations
class MountTests(TestCaseBase):
- def testLoopMount(self):
+
+ @permutations([['%03d' % i] for i in range(100)])
+ def testLoopMount(self, name):
checkSudo(["mount", "-o", "loop", "somefile", "target"])
checkSudo(["umount", "target"])
with namedTemporaryDir() as mpath:
@@ -137,7 +140,8 @@
with stopwatch("Wait for udev events"):
udevadm.settle(5)
- def testSymlinkMount(self):
+ @permutations([['%03d' % i] for i in range(100)])
+ def testSymlinkMount(self, name):
checkSudo(["mount", "-o", "loop", "somefile", "target"])
checkSudo(["umount", "target"])
with namedTemporaryDir() as root_dir:
--
To view, visit https://gerrit.ovirt.org/51748
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If5da6cc38d4f3ce5d430f89ffe0b06ce47e62ff0
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsoffer at redhat.com>
More information about the vdsm-patches
mailing list