Skip to content

Commit

Permalink
eclass/tests: Fix inheriting multiple eclasses
Browse files Browse the repository at this point in the history
Fix the inherit function to correctly handle 'inherit' call with
multiple eclasses, instead of returning after the first eclass is
successfully sourced.
  • Loading branch information
mgorny committed Aug 8, 2017
1 parent 6ef8968 commit 6924425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eclass/tests/tests-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ inherit() {
local eclass=${path}/${e}.eclass
if [[ -e "${eclass}" ]] ; then
source "${eclass}"
return 0
continue 2
fi
done
die "could not find ${e}.eclass"
done
die "could not find ${eclass}"
}
EXPORT_FUNCTIONS() { :; }

Expand Down

0 comments on commit 6924425

Please sign in to comment.