diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-28 09:49:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-28 09:49:11 +0100 |
commit | 115dcc7054f5934a2c8e26fd8a8eed5f3e29e9ce (patch) | |
tree | c31afe35699960753f76770d6b0b4ea48af9f686 /eclass/ruby-ng.eclass | |
parent | e292b671b113c2cc012beddad93a3df4f9410698 (diff) |
gentoo auto-resync : 28:03:2023 - 09:49:10
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r-- | eclass/ruby-ng.eclass | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index f85a933f81d9..c273a431c5b1 100644 --- a/eclass/ruby-ng.eclass +++ b/eclass/ruby-ng.eclass @@ -757,6 +757,31 @@ ruby-ng_cucumber() { CUCUMBER_PUBLISH_QUIET=true ${RUBY} -S cucumber ${cucumber_params} "$@" || die -n "cucumber failed" } +# @FUNCTION: ruby-ng_sus +# @DESCRIPTION: +# This is simply a wrapper around the sus-parallel command (executed by $RUBY}) +# which also respects TEST_VERBOSE and NOCOLOR environment variables. +ruby-ng_sus() { + debug-print-function ${FUNCNAME} "${@}" + + if [[ "${DEPEND}${BDEPEND}" != *"dev-ruby/sus"* ]]; then + ewarn "Missing test dependency dev-ruby/sus" + fi + + local sus_params= + + # sus has a --verbose argument but it does not seem to impact the output (yet?) + case ${TEST_VERBOSE} in + 1|yes|true) + sus_params+=" --verbose" + ;; + *) + ;; + esac + + ${RUBY} -S sus-parallel ${sus_params} "$@" || die -n "sus failed" +} + # @FUNCTION: ruby-ng_testrb-2 # @DESCRIPTION: # This is simply a replacement for the testrb command that load the test |