diff options
Diffstat (limited to 'templates/tatt_functions.sh')
-rw-r--r-- | templates/tatt_functions.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/tatt_functions.sh b/templates/tatt_functions.sh index 9aeed69..b7e4e05 100644 --- a/templates/tatt_functions.sh +++ b/templates/tatt_functions.sh @@ -38,11 +38,15 @@ function tatt_pkg_error function tatt_test_pkg { - if [ -n "${TFEATURES}" ]; then + if [ "${1:?}" == "--test" ]; then + shift if ! emerge --onlydeps -1 --with-test-deps ${TATT_EMERGEOPTS} "${1:?}"; then echo "merging test dependencies of ${1} failed" >> "${TATT_REPORTFILE}" return 0 fi + TFEATURES="${FEATURES} test" + else + TFEATURES="${FEATURES}" fi eout=$( FEATURES="${TFEATURES}" emerge -1 ${TATT_EMERGEOPTS} "${1:?}" 2>&1 1>/dev/tty ) |