It claims oelib.buildhistory tests don't exist: oe-selftest - ERROR - Not found oelib.buildhistory in loaded test cases yet oe-selftest -r oelib will run them
Note that is likely due to the fact oelib is a dubdirectory and the test paths are 4 items deep rather than the usual 3.
close with this commit https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ebfa049fc0570ec3f8859295f75d20b66b24f43f