commit:     6ae35c4bc3580abc411e055c52cd6f610cd31555
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Nov 26 12:11:48 2022 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sat Nov 26 12:27:24 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6ae35c4b

nim-utils.eclass: use "nim_get_colors" in etestament

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 eclass/nim-utils.eclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/eclass/nim-utils.eclass b/eclass/nim-utils.eclass
index e72eb1bb5..eba7e5f5e 100644
--- a/eclass/nim-utils.eclass
+++ b/eclass/nim-utils.eclass
@@ -89,13 +89,13 @@ ekoch() {
 etestament() {
        debug-print-function ${FUNCNAME} "${@}"
 
-       local -a testament_args=()
+       local testament_args=(
+               --colors:$(nim_get_colors)
+       )
+
        [[ ${TESTAMENT_DISABLE_MEGATEST} ]] && \
                testament_args+=( --megatest:off )
 
-       [[ "${NOCOLOR}" == true || "${NOCOLOR}" == yes ]] && \
-               testament_args+=( --colors:off )
-
        if [[ ${ETESTAMENT_DESELECT} ]]; then
                local skipfile="${T}"/testament.skipfile
                if [[ ! -f ${skipfile} ]]; then

Reply via email to