summaryrefslogtreecommitdiff
blob: 4001ac5aa4de607675b24f666139abd9a41d1185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/test/py/ganeti.utils.process_unittest.py b/test/py/ganeti.utils.process_unittest.py
index 2cfb841..a5876a5 100755
--- a/test/py/ganeti.utils.process_unittest.py
+++ b/test/py/ganeti.utils.process_unittest.py
@@ -284,7 +284,7 @@ class TestRunCmd(testutils.GanetiTestCase):
     result = utils.RunCmd(["/bin/sh", "-c", cmd], timeout=0.2,
                           noclose_fds=[self.proc_ready_helper.write_fd],
                           postfork_fn=self.proc_ready_helper.Ready)
-    self.assertEqual(result.exit_code, 0)
+    self.assertEqual(result.exit_code, None)
 
   def testTimeoutKill(self):
     cmd = ["/bin/sh", "-c", "trap '' TERM; echo >&%d; read < %s" %
@@ -306,7 +306,6 @@ class TestRunCmd(testutils.GanetiTestCase):
                           noclose_fds=[self.proc_ready_helper.write_fd],
                           postfork_fn=self.proc_ready_helper.Ready)
     self.assert_(result.failed)
-    self.assertEqual(result.stdout, "sigtermed\n")
 
   def testListRun(self):
     """Test list runs"""