diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-01-01 13:55:26 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-01-08 06:14:36 +0100 |
commit | de0c03eda7a5570984491fe6fc2e4959b36ce128 (patch) | |
tree | cca9467c1cef6a7585c02560a71ac4b75f523724 /eclass/tests/scons-utils.sh | |
parent | scons-utils.eclass: scons_clean_makeopts, mark internal (diff) | |
download | gentoo-de0c03eda7a5570984491fe6fc2e4959b36ce128.tar.gz gentoo-de0c03eda7a5570984491fe6fc2e4959b36ce128.tar.bz2 gentoo-de0c03eda7a5570984491fe6fc2e4959b36ce128.zip |
scons-utils.eclass: _scons_clean_makeopts, fix result caching
Stop calling _scons_clean_makeopts in a subshell in order to make
it possible for the cache to be preserved. Pass the result through
SCONSOPTS variable.
Diffstat (limited to 'eclass/tests/scons-utils.sh')
-rwxr-xr-x | eclass/tests/scons-utils.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/tests/scons-utils.sh b/eclass/tests/scons-utils.sh index df8af7a7713c..6355c54517db 100755 --- a/eclass/tests/scons-utils.sh +++ b/eclass/tests/scons-utils.sh @@ -10,14 +10,15 @@ inherit scons-utils test-scons_clean_makeopts() { tbegin "scons_clean_makeopts() for ${1}" - local sconsopts=$(_scons_clean_makeopts ${1}) ret=0 + local SCONSOPTS ret=0 + _scons_clean_makeopts ${1} - if [[ ${sconsopts} != ${2-${1}} ]]; then + if [[ ${SCONSOPTS} != ${2-${1}} ]]; then eerror "Self-test failed:" eindent eerror "MAKEOPTS: ${1}" eerror "Expected: ${2-${1}}" - eerror "Actual: ${sconsopts}" + eerror "Actual: ${SCONSOPTS}" eoutdent ret=1 fi |