You need to sign in or sign up before continuing.
未验证 提交 e5d5064a 编写于 作者: A Amador Pahim

Merge branch 'clebergnu-travis_resource_sensitive_tests'

Signed-off-by: NAmador Pahim <apahim@redhat.com>
...@@ -481,6 +481,9 @@ class RunnerOperationTest(unittest.TestCase): ...@@ -481,6 +481,9 @@ class RunnerOperationTest(unittest.TestCase):
int(r['job_id'], 16) # it's an hex number int(r['job_id'], 16) # it's an hex number
self.assertEqual(len(r['job_id']), 40) self.assertEqual(len(r['job_id']), 40)
@unittest.skipIf(int(os.environ.get("AVOCADO_CHECK_LEVEL", 0)) < 2,
"Skipping test that take a long time to run, are "
"resource intensive or time sensitve")
def test_early_latest_result(self): def test_early_latest_result(self):
""" """
Tests that the `latest` link to the latest job results is created early Tests that the `latest` link to the latest job results is created early
...@@ -795,7 +798,7 @@ class RunnerSimpleTest(unittest.TestCase): ...@@ -795,7 +798,7 @@ class RunnerSimpleTest(unittest.TestCase):
(expected_rc, result)) (expected_rc, result))
@unittest.skipIf(not SLEEP_BINARY, 'sleep binary not available') @unittest.skipIf(not SLEEP_BINARY, 'sleep binary not available')
@unittest.skipIf(int(os.environ.get("AVOCADO_CHECK_LEVEL", 0)) < 1, @unittest.skipIf(int(os.environ.get("AVOCADO_CHECK_LEVEL", 0)) < 2,
"Skipping test that take a long time to run, are " "Skipping test that take a long time to run, are "
"resource intensive or time sensitve") "resource intensive or time sensitve")
def test_kill_stopped_sleep(self): def test_kill_stopped_sleep(self):
......
...@@ -193,7 +193,7 @@ class InterruptTest(unittest.TestCase): ...@@ -193,7 +193,7 @@ class InterruptTest(unittest.TestCase):
# Make sure the Interrupted test sentence is there # Make sure the Interrupted test sentence is there
self.assertIn(b'Terminated\n', self.proc.stdout.read()) self.assertIn(b'Terminated\n', self.proc.stdout.read())
@unittest.skipIf(int(os.environ.get("AVOCADO_CHECK_LEVEL", 0)) < 1, @unittest.skipIf(int(os.environ.get("AVOCADO_CHECK_LEVEL", 0)) < 2,
"Skipping test that take a long time to run, are " "Skipping test that take a long time to run, are "
"resource intensive or time sensitve") "resource intensive or time sensitve")
def test_well_behaved_sigint(self): def test_well_behaved_sigint(self):
...@@ -237,7 +237,7 @@ class InterruptTest(unittest.TestCase): ...@@ -237,7 +237,7 @@ class InterruptTest(unittest.TestCase):
# Make sure the Killing test subprocess message is not there # Make sure the Killing test subprocess message is not there
self.assertNotIn(b'Killing test subprocess', output) self.assertNotIn(b'Killing test subprocess', output)
@unittest.skipIf(int(os.environ.get("AVOCADO_CHECK_LEVEL", 0)) < 1, @unittest.skipIf(int(os.environ.get("AVOCADO_CHECK_LEVEL", 0)) < 2,
"Skipping test that take a long time to run, are " "Skipping test that take a long time to run, are "
"resource intensive or time sensitve") "resource intensive or time sensitve")
def test_well_behaved_sigterm(self): def test_well_behaved_sigterm(self):
......
...@@ -191,7 +191,7 @@ class LoaderTestFunctional(unittest.TestCase): ...@@ -191,7 +191,7 @@ class LoaderTestFunctional(unittest.TestCase):
def test_not_python_module(self): def test_not_python_module(self):
self._test('passtest', AVOCADO_TEST_OK, 'NOT_A_TEST') self._test('passtest', AVOCADO_TEST_OK, 'NOT_A_TEST')
@unittest.skipIf(int(os.environ.get("AVOCADO_CHECK_LEVEL", 0)) < 1, @unittest.skipIf(int(os.environ.get("AVOCADO_CHECK_LEVEL", 0)) < 2,
"Skipping test that take a long time to run, are " "Skipping test that take a long time to run, are "
"resource intensive or time sensitve") "resource intensive or time sensitve")
def test_sleep_a_lot(self): def test_sleep_a_lot(self):
...@@ -253,7 +253,7 @@ class LoaderTestFunctional(unittest.TestCase): ...@@ -253,7 +253,7 @@ class LoaderTestFunctional(unittest.TestCase):
% (AVOCADO, self.tmpdir, mytest)) % (AVOCADO, self.tmpdir, mytest))
self._run_with_timeout(cmd_line, 5) self._run_with_timeout(cmd_line, 5)
@unittest.skipIf(int(os.environ.get("AVOCADO_CHECK_LEVEL", 0)) < 1, @unittest.skipIf(int(os.environ.get("AVOCADO_CHECK_LEVEL", 0)) < 2,
"Skipping test that take a long time to run, are " "Skipping test that take a long time to run, are "
"resource intensive or time sensitve") "resource intensive or time sensitve")
def test_simple_using_main(self): def test_simple_using_main(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册