summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2023-07-05 11:50:01 +0100
committerSteve Sakoman <steve@sakoman.com>2023-08-02 04:47:13 -1000
commita22efd037306af72d7ad264e4fc7f0a0928bd52e (patch)
tree424cbc1bc7803e242e90dab8e6c47aaebe73c030 /meta/lib
parent56f316630ad6425721ce7f3cf57128545314162b (diff)
downloadpoky-a22efd037306af72d7ad264e4fc7f0a0928bd52e.tar.gz
oeqa/runtime/cases/rpm: fix wait_for_no_process_for_user failure case
str.format() doesn't use % notation, update the formatting to work. assertTrue() is a member of self not a global, and assertTrue(True) will always pass. Change this to just self.fail() as this is the failure case. (From OE-Core rev: 05c8af81438d43fd83495cb165c75f43778fea41) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 017f3a0b1265c1a3b69c20bdb56bbf446111977e) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/runtime/cases/rpm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/cases/rpm.py b/meta/lib/oeqa/runtime/cases/rpm.py
index 5bdce3d522..7226b8af6a 100644
--- a/meta/lib/oeqa/runtime/cases/rpm.py
+++ b/meta/lib/oeqa/runtime/cases/rpm.py
@@ -57,8 +57,8 @@ class RpmBasicTest(OERuntimeTestCase):
57 return 57 return
58 time.sleep(1) 58 time.sleep(1)
59 user_pss = [ps for ps in output.split("\n") if u + ' ' in ps] 59 user_pss = [ps for ps in output.split("\n") if u + ' ' in ps]
60 msg = "There're %s 's process(es) still running: %s".format(u, "\n".join(user_pss)) 60 msg = "User %s has processes still running: %s" % (u, "\n".join(user_pss))
61 assertTrue(True, msg=msg) 61 self.fail(msg=msg)
62 62
63 def unset_up_test_user(u): 63 def unset_up_test_user(u):
64 # ensure no test1 process in running 64 # ensure no test1 process in running