summaryrefslogtreecommitdiff
path: root/meta
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-29 18:14:51 +0000
commitaeee86050019caae5da3af8d31cf57bc811c5e80 (patch)
tree5704ff433579ca77ca545968dc2581a840d90b1f /meta
parentfcde0c43f7b57ec6f8201226ad98e6e46708d288 (diff)
downloadopenembedded-core-aeee86050019caae5da3af8d31cf57bc811c5e80.tar.gz
openembedded-core-aeee86050019caae5da3af8d31cf57bc811c5e80.tar.bz2
openembedded-core-aeee86050019caae5da3af8d31cf57bc811c5e80.zip
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. Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-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):
@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')