From 956be0c858b55f34e666ad2a00bd07ae61e36ae1 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 25 Jan 2016 16:26:17 +0000 Subject: oeqa/runtime/rpm: be more verbose if test_rpm_query_nonroot fails If some parts of this test fail put the failing output in the logs to help debugging. (From OE-Core rev: aeee86050019caae5da3af8d31cf57bc811c5e80) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oeqa/runtime/rpm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta') diff --git a/meta/lib/oeqa/runtime/rpm.py b/meta/lib/oeqa/runtime/rpm.py index 32aae24232..624c515aad 100644 --- a/meta/lib/oeqa/runtime/rpm.py +++ b/meta/lib/oeqa/runtime/rpm.py @@ -52,11 +52,11 @@ class RpmInstallRemoveTest(oeRuntimeTest): @skipUnlessPassed('test_ssh') def test_rpm_query_nonroot(self): (status, output) = self.target.run('useradd test1') - self.assertTrue(status == 0, msg="Failed to create new user") + self.assertTrue(status == 0, msg="Failed to create new user: " + output) (status, output) = self.target.run('sudo -u test1 id') self.assertTrue('(test1)' in output, msg="Failed to execute as new user") (status, output) = self.target.run('sudo -u test1 rpm -qa') - self.assertEqual(status, 0, msg="status: %s. Cannot run rpm -qa" % status) + self.assertEqual(status, 0, msg="status: %s. Cannot run rpm -qa: %s" % (status, output)) @testcase(195) @skipUnlessPassed('test_rpm_install') -- cgit v1.2.3-54-g00ecf