提交 285d9218 编写于 作者: R Rudá Moura 提交者: Ruda Moura

seltests: Fix tests regarding moving options to the runner.

Fix functional tests regarding the changes that moves
options from the main application to the test runner (avocado run).
Signed-off-by: NRuda Moura <rmoura@redhat.com>
上级 1a08dfd1
......@@ -106,7 +106,7 @@ class RunnerOperationTest(unittest.TestCase):
def test_runner_doublefail(self):
os.chdir(basedir)
cmd_line = './scripts/avocado --xunit - run doublefail'
cmd_line = './scripts/avocado run --xunit - doublefail'
result = process.run(cmd_line, ignore_status=True)
output = result.stdout
expected_rc = 1
......@@ -123,7 +123,7 @@ class RunnerOperationTest(unittest.TestCase):
def test_runner_timeout(self):
os.chdir(basedir)
cmd_line = './scripts/avocado --xunit - run timeouttest'
cmd_line = './scripts/avocado run --xunit - timeouttest'
result = process.run(cmd_line, ignore_status=True)
output = result.stdout
expected_rc = 1
......@@ -139,7 +139,7 @@ class RunnerOperationTest(unittest.TestCase):
def test_runner_abort(self):
os.chdir(basedir)
cmd_line = './scripts/avocado --xunit - run abort'
cmd_line = './scripts/avocado run --xunit - abort'
result = process.run(cmd_line, ignore_status=True)
expected_rc = 1
unexpected_rc = 3
......@@ -362,7 +362,7 @@ class PluginsXunitTest(PluginsTest):
def run_and_check(self, testname, e_rc, e_ntests, e_nerrors,
e_nnotfound, e_nfailures, e_nskip):
os.chdir(basedir)
cmd_line = './scripts/avocado --xunit - run %s' % testname
cmd_line = './scripts/avocado run --xunit - %s' % testname
result = process.run(cmd_line, ignore_status=True)
xml_output = result.stdout
self.assertEqual(result.exit_status, e_rc,
......@@ -436,7 +436,7 @@ class PluginsJSONTest(PluginsTest):
def run_and_check(self, testname, e_rc, e_ntests, e_nerrors, e_nnotfound,
e_nfailures, e_nskip):
os.chdir(basedir)
cmd_line = './scripts/avocado --json - run --archive %s' % testname
cmd_line = './scripts/avocado run --json - --archive %s' % testname
result = process.run(cmd_line, ignore_status=True)
json_output = result.stdout
self.assertEqual(result.exit_status, e_rc,
......
......@@ -61,7 +61,7 @@ class OutputPluginTest(unittest.TestCase):
def test_output_incompatible_setup(self):
os.chdir(basedir)
cmd_line = './scripts/avocado --xunit - --json - run sleeptest'
cmd_line = './scripts/avocado run --xunit - --json - sleeptest'
result = process.run(cmd_line, ignore_status=True)
expected_rc = 2
output = result.stdout + result.stderr
......@@ -74,7 +74,7 @@ class OutputPluginTest(unittest.TestCase):
def test_output_incompatible_setup_2(self):
os.chdir(basedir)
cmd_line = './scripts/avocado --vm --json - run sleeptest'
cmd_line = './scripts/avocado run --vm --json - sleeptest'
result = process.run(cmd_line, ignore_status=True)
expected_rc = 2
output = result.stdout + result.stderr
......@@ -88,7 +88,7 @@ class OutputPluginTest(unittest.TestCase):
def test_output_compatible_setup(self):
tmpfile = tempfile.mktemp()
os.chdir(basedir)
cmd_line = './scripts/avocado --journal --xunit %s --json - run sleeptest' % tmpfile
cmd_line = './scripts/avocado run --journal --xunit %s --json - sleeptest' % tmpfile
result = process.run(cmd_line, ignore_status=True)
output = result.stdout + result.stderr
expected_rc = 0
......@@ -108,7 +108,7 @@ class OutputPluginTest(unittest.TestCase):
def test_output_compatible_setup_2(self):
tmpfile = tempfile.mktemp()
os.chdir(basedir)
cmd_line = './scripts/avocado --xunit - --json %s run sleeptest' % tmpfile
cmd_line = './scripts/avocado run --xunit - --json %s sleeptest' % tmpfile
result = process.run(cmd_line, ignore_status=True)
output = result.stdout + result.stderr
expected_rc = 0
......@@ -132,7 +132,7 @@ class OutputPluginTest(unittest.TestCase):
tmpfile = tempfile.mktemp()
tmpfile2 = tempfile.mktemp()
os.chdir(basedir)
cmd_line = './scripts/avocado --xunit %s --json %s run sleeptest' % (tmpfile, tmpfile2)
cmd_line = './scripts/avocado run --xunit %s --json %s sleeptest' % (tmpfile, tmpfile2)
result = process.run(cmd_line, ignore_status=True)
output = result.stdout + result.stderr
expected_rc = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册