diff options
author | Costin Constantin <costin.c.constantin@intel.com> | 2015-07-16 16:20:24 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-22 23:24:59 +0100 |
commit | e555646ecb1ee9c7b00ec22f0d40bdd9da1b4dfd (patch) | |
tree | 59d47a3ac3390f1c1ac2404a304b119133fab339 /meta/lib/oeqa | |
parent | 0884dc483e5111021d700e9a509c478de2e431b3 (diff) | |
download | openembedded-core-e555646ecb1ee9c7b00ec22f0d40bdd9da1b4dfd.tar.gz openembedded-core-e555646ecb1ee9c7b00ec22f0d40bdd9da1b4dfd.tar.bz2 openembedded-core-e555646ecb1ee9c7b00ec22f0d40bdd9da1b4dfd.zip |
oeqa/recipetool: add useful failure messages to test cases
Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/recipetool.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/recipetool.py b/meta/lib/oeqa/selftest/recipetool.py index 08ff4f14e0..12c6b255ea 100644 --- a/meta/lib/oeqa/selftest/recipetool.py +++ b/meta/lib/oeqa/selftest/recipetool.py @@ -50,7 +50,7 @@ class RecipetoolTests(DevtoolBase): bbappendfile = self._check_bbappend(testrecipe, recipefile, templayerdir) # Check the bbappend contents with open(bbappendfile, 'r') as f: - self.assertEqual(expectedlines, f.readlines()) + self.assertEqual(expectedlines, f.readlines(), "Expected lines are not present in %s" % bbappendfile) # Check file was copied filesdir = os.path.join(os.path.dirname(bbappendfile), testrecipe) for expectedfile in expectedfiles: @@ -109,7 +109,7 @@ class RecipetoolTests(DevtoolBase): # But file should have copiedfile = os.path.join(os.path.dirname(bbappendfile), 'coreutils', testfile2name) result = runCmd('diff -q %s %s' % (testfile2, copiedfile), ignore_status=True) - self.assertNotEqual(result.status, 0, 'New file should have been copied but was not') + self.assertNotEqual(result.status, 0, 'New file should have been copied but was not %s' % result.output) @testcase(1178) def test_recipetool_appendfile_binary(self): |