mirror of
https://git.yoctoproject.org/poky
synced 2026-03-11 09:49:41 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
3b5288f0a2
commit
956be0c858
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user