"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.
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"