Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614090 - eclass/tests/tests-common.sh should inherit all eclasses
Summary: eclass/tests/tests-common.sh should inherit all eclasses
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-27 17:18 UTC by Harald Weiner
Modified: 2017-03-28 16:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
eclass-tests-common.sh.patch (gentoo-eclass-tests-common.sh.patch,603 bytes, application/x-download)
2017-03-27 17:18 UTC, Harald Weiner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Weiner 2017-03-27 17:18:30 UTC
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.