testimage: Support full TC path such oeqa.runtime.pnp.get_memory_size in TEST_SUITES
PATCH 1/2 testimage: Support full TC path such oeqa.runtime.pnp.get_memory_size in TEST_SUITES
https://bugzilla.yoctoproject.org/show_bug.cgi?id=7834
If a TC name start with "oeqa", it is thought as a full TC path. if not,
follow original logic (assume under oeqa.runtime), and this case will be 7 load by loadTests.
for example:TEST_SUITES = "oeqa.runtime.pnp.get_memory_size oeqa.runtime.sanity.reboot" this will run these two case when bitbake -c testimage
--- meta/classes/testimage.bbclass | 3 +++ 1 file changed, 3 insertions(+)
meta/classes/testimage.bbclass +3 -0
@@ -77,6 +77,9 @@ def get_tests_list(d, type="runtime"): testslist = [] for testname in testsuites: if testname != "auto": + if testname.startswith("oeqa."): + testslist.append(testname) + continue found = False for p in bbpath: if os.path.exists(os.path.join(p, 'lib', 'oeqa', type, testname + '.py')):
Signature · 1 line
1.9.1
Are we OK with this patch?
-Cathy
Quoted 45 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of zjh
Sent: Tuesday, June 23, 2015 3:54 PM
To: [email protected]
Subject: [OE-core] [PATCH 1/2] testimage: Support full TC path such oeqa.runtime.pnp.get_memory_size inTEST_SUITEShttps://bugzilla.yoctoproject.org/show_bug.cgi?id=7834
If a TC name start with "oeqa", it is thought as a full TC path. if not,
follow original logic (assume under oeqa.runtime), and this case will be 7 load by
loadTests.
for example:TEST_SUITES= "oeqa.runtime.pnp.get_memory_size oeqa.runtime.sanity.reboot" this will run these two case when bitbake -c testimageSigned-off-by zjh <[email protected]>---
meta/classes/testimage.bbclass | 3 +++1 file changed, 3 insertions(+)meta/classes/testimage.bbclass +3
-0@@ -77,6 +77,9 @@ def get_tests_list(d, type="runtime"): testslist = [] for testname in testsuites: if testname != "auto": + if testname.startswith("oeqa."): + testslist.append(testname) + continue found = False for p in bbpath: if os.path.exists(os.path.join(p, 'lib', 'oeqa', type, testname +'.py')):
--
1.9.1--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 1 line · Cathy
Are we OK with this patch?
To be honest, I was a bit confused as it said 1/2 and there never was a 2/2 until a week later and I didn't connect the two.
For future reference, the correct way to reference bugzilla in the commit message is:
[YOCTO #7834]
The 2/2 patch also had no explanation of what it did in the commit message body.
I've tweaked the commit messages for these two and queued in master-next.
Cheers,
Richard