Bug 12324 - ptest-runner may run some tests twice
Summary: ptest-runner may run some tests twice
Status: RESOLVED FIXED
Alias: None
Product: General Runtime
Classification: Runtime
Component: General Runtime (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low normal
Target Milestone: 2.5
Assignee: Juro Bystricky
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-11-08 18:56 UTC by Juro Bystricky
Modified: 2018-01-03 18:07 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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"