Created attachment 468482 [details] eclass-tests-common.sh.patch Imagine myoverlay.eclass in an overlay with the following code: inherit myoverlay-utils java-utils-2 myoverlay_src_install() { myoverlay-utils_src_install java-pkg_jarinto "${MYOVERLAY_DEST}" # ... more stuff ... } Whenever a test script (that sources /usr/portage/eclass/tests/tests-common.sh) now wants to test src_install the result will be /usr/local/myoverlay/eclass/tests/..//myoverlay.eclass: line 55: java-pkg_jarinto: command not found Find a possible solution to this problem attached.