Change in vdsm[master]: Added test to verify that miscExec throws exception when inv...

smizrahi at redhat.com smizrahi at redhat.com
Wed Oct 10 12:18:54 UTC 2012


Saggi Mizrahi has uploaded a new change for review.

Change subject: Added test to verify that miscExec throws exception when invoking a command that doesn't exist
......................................................................

Added test to verify that miscExec throws exception when invoking a command that doesn't exist

Change-Id: Ife6fcb0e9769ce7b5f62dce31e717d21b0fea25f
Signed-off-by: Saggi Mizrahi <smizrahi at redhat.com>
---
M tests/miscTests.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/62/8462/1

diff --git a/tests/miscTests.py b/tests/miscTests.py
index 60fd576..de11e88 100644
--- a/tests/miscTests.py
+++ b/tests/miscTests.py
@@ -930,6 +930,9 @@
 
         self.assertEquals(ret, 0)
 
+    def testNoCommand(self):
+        self.assertRaises(OSError, misc.execCmd, ["I.DONT.EXIST"], sudo=False)
+
     def testStdOut(self):
         """
         Tests that execCmd correctly returns the standard output of the prog it


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ife6fcb0e9769ce7b5f62dce31e717d21b0fea25f
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