diff mbox series

oeqa/runtime/cases/rpm: fix unqualified assertTrue() call

Message ID 20230705105030.3698799-1-ross.burton@arm.com
State New
Headers show
Series oeqa/runtime/cases/rpm: fix unqualified assertTrue() call | expand

Commit Message

Ross Burton July 5, 2023, 10:50 a.m. UTC
From: Ross Burton <ross.burton@arm.com>

assertTrue() is a member of self, not a global.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/lib/oeqa/runtime/cases/rpm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ross Burton July 5, 2023, 10:57 a.m. UTC | #1
Ignore this, more problems with the same code block.

Ross

> On 5 Jul 2023, at 11:50, Ross Burton via lists.openembedded.org <ross.burton=arm.com@lists.openembedded.org> wrote:
> 
> From: Ross Burton <ross.burton@arm.com>
> 
> assertTrue() is a member of self, not a global.
> 
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
> meta/lib/oeqa/runtime/cases/rpm.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/lib/oeqa/runtime/cases/rpm.py b/meta/lib/oeqa/runtime/cases/rpm.py
> index fa86eb05373..7ab71851b44 100644
> --- a/meta/lib/oeqa/runtime/cases/rpm.py
> +++ b/meta/lib/oeqa/runtime/cases/rpm.py
> @@ -60,7 +60,7 @@ class RpmBasicTest(OERuntimeTestCase):
>                 time.sleep(1)
>             user_pss = [ps for ps in output.split("\n") if u + ' ' in ps]
>             msg = "There're %s 's process(es) still running: %s".format(u, "\n".join(user_pss))
> -            assertTrue(True, msg=msg)
> +            self.assertTrue(True, msg=msg)
> 
>         def unset_up_test_user(u):
>             # ensure no test1 process in running
> -- 
> 2.34.1
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#183884): https://lists.openembedded.org/g/openembedded-core/message/183884
> Mute This Topic: https://lists.openembedded.org/mt/99962465/6875888
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ross.burton@arm.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta/lib/oeqa/runtime/cases/rpm.py b/meta/lib/oeqa/runtime/cases/rpm.py
index fa86eb05373..7ab71851b44 100644
--- a/meta/lib/oeqa/runtime/cases/rpm.py
+++ b/meta/lib/oeqa/runtime/cases/rpm.py
@@ -60,7 +60,7 @@  class RpmBasicTest(OERuntimeTestCase):
                 time.sleep(1)
             user_pss = [ps for ps in output.split("\n") if u + ' ' in ps]
             msg = "There're %s 's process(es) still running: %s".format(u, "\n".join(user_pss))
-            assertTrue(True, msg=msg)
+            self.assertTrue(True, msg=msg)
 
         def unset_up_test_user(u):
             # ensure no test1 process in running