Bug 12324

Summary: ptest-runner may run some tests twice
Product: [Runtime] General Runtime Reporter: Juro Bystricky <juro.bystricky>
Component: General RuntimeAssignee: Juro Bystricky <juro.bystricky>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Low CC: joshuagloe
Version: unspecified   
Target Milestone: 2.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Juro Bystricky 2017-11-08 18:56:12 UTC
"ptest-runner" may run some identical tests more than once, see for example
https://wiki.yoctoproject.org/wiki/Ptest_65d23bd7986615fdfb0f1717b615534a2a14ab80

where "perl" and "perl5" test suite is the same. The reason is "perl5" is a symlink to "perl", but ptest-runner does not detect identical cases when enumerating all test cases.

This may not seem as a big deal, but running the ptest for perl takes at least 10 minutes on a fast machine when running under KVM, and a lot longer without KVM.
Comment 1 Juro Bystricky 2018-01-03 18:07:17 UTC
This issue is fixed by upgrading ptest-runner2 to versionn 2.1.1 (by Aníbal Limón)

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d151c4274969991ec2de5c0021bc00eaab4298d2

ptest-runner2 fixed in version 2.1.1:
https://git.yoctoproject.org/cgit/cgit.cgi/ptest-runner2/commit/?id=0e566f65fa31eaa5208d4a17413c7a4aad7eade5

"Add support to avoid load/run twice a run_ptest script"