summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-01-25 16:26:17 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-30 11:36:57 +0000
commit956be0c858b55f34e666ad2a00bd07ae61e36ae1 (patch)
treecd0c42ea7b0453c339b8665a7cbf5b08ada153c6 /meta/lib/oeqa/runtime
parent3b5288f0a28205289063424afc474675cbaa05b8 (diff)
downloadpoky-956be0c858b55f34e666ad2a00bd07ae61e36ae1.tar.gz
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 <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r--meta/lib/oeqa/runtime/rpm.py4
1 files changed, 2 insertions, 2 deletions
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):
52 @skipUnlessPassed('test_ssh') 52 @skipUnlessPassed('test_ssh')
53 def test_rpm_query_nonroot(self): 53 def test_rpm_query_nonroot(self):
54 (status, output) = self.target.run('useradd test1') 54 (status, output) = self.target.run('useradd test1')
55 self.assertTrue(status == 0, msg="Failed to create new user") 55 self.assertTrue(status == 0, msg="Failed to create new user: " + output)
56 (status, output) = self.target.run('sudo -u test1 id') 56 (status, output) = self.target.run('sudo -u test1 id')
57 self.assertTrue('(test1)' in output, msg="Failed to execute as new user") 57 self.assertTrue('(test1)' in output, msg="Failed to execute as new user")
58 (status, output) = self.target.run('sudo -u test1 rpm -qa') 58 (status, output) = self.target.run('sudo -u test1 rpm -qa')
59 self.assertEqual(status, 0, msg="status: %s. Cannot run rpm -qa" % status) 59 self.assertEqual(status, 0, msg="status: %s. Cannot run rpm -qa: %s" % (status, output))
60 60
61 @testcase(195) 61 @testcase(195)
62 @skipUnlessPassed('test_rpm_install') 62 @skipUnlessPassed('test_rpm_install')