From 7f81e2b988ed5aa1d4ccf7086ba50f9f6b29d14f Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Fri, 19 Nov 2010 17:22:17 +0100 Subject: [PATCH] Temporarily remove the interactive tests make check < /dev/null breaks these tests. Until we have change RunCmd to override stdin, we need to remove them. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- test/ganeti.utils_unittest.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/ganeti.utils_unittest.py b/test/ganeti.utils_unittest.py index f03c0b993..7165498c3 100755 --- a/test/ganeti.utils_unittest.py +++ b/test/ganeti.utils_unittest.py @@ -295,18 +295,6 @@ class TestRunCmd(testutils.GanetiTestCase): result = RunCmd(["/bin/sh", "-c", cmd], timeout=0.2) self.assertEqual(result.exit_code, 0) - def testTimeoutCleanInteractive(self): - cmd = "trap 'exit 0' TERM; read" - result = RunCmd(["/bin/sh", "-c", cmd], interactive=True, timeout=0.2) - self.assertEqual(result.exit_code, 0) - - def testTimeoutNonClean(self): - for exit_code in (1, 10, 17, 29): - cmd = "trap 'exit %i' TERM; read" % exit_code - result = RunCmd(["/bin/sh", "-c", cmd], interactive=True, timeout=0.2) - self.assert_(result.failed) - self.assertEqual(result.exit_code, exit_code) - def testTimeoutKill(self): cmd = "trap '' TERM; read < %s" % self.fifo_file timeout = 0.2 -- GitLab