diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/runcmd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runcmd.py b/meta/lib/oeqa/selftest/cases/runcmd.py index e9612389fe..e423fe3d3e 100644 --- a/meta/lib/oeqa/selftest/cases/runcmd.py +++ b/meta/lib/oeqa/selftest/cases/runcmd.py | |||
| @@ -56,11 +56,11 @@ class RunCmdTests(OESelftestTestCase): | |||
| 56 | self.assertEqual(result.status, 0) | 56 | self.assertEqual(result.status, 0) |
| 57 | 57 | ||
| 58 | def test_result_assertion(self): | 58 | def test_result_assertion(self): |
| 59 | self.assertRaisesRegexp(AssertionError, "Command 'echo .* false' returned non-zero exit status 1:\nfoobar", | 59 | self.assertRaisesRegex(AssertionError, "Command 'echo .* false' returned non-zero exit status 1:\nfoobar", |
| 60 | runCmd, "echo foobar >&2; false", shell=True) | 60 | runCmd, "echo foobar >&2; false", shell=True) |
| 61 | 61 | ||
| 62 | def test_result_exception(self): | 62 | def test_result_exception(self): |
| 63 | self.assertRaisesRegexp(CommandError, "Command 'echo .* false' returned non-zero exit status 1 with output: foobar", | 63 | self.assertRaisesRegex(CommandError, "Command 'echo .* false' returned non-zero exit status 1 with output: foobar", |
| 64 | runCmd, "echo foobar >&2; false", shell=True, assert_error=False) | 64 | runCmd, "echo foobar >&2; false", shell=True, assert_error=False) |
| 65 | 65 | ||
| 66 | def test_output(self): | 66 | def test_output(self): |
