Gentoo Archives: gentoo-dev

From: Florian Schmaus <flow@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] eclass/java-utils-2.eclass: testng print verbose output
Date: Wed, 29 Jun 2022 06:48:51
Message-Id: bd5e57bd-b3a7-5ff2-b822-e2248d757552@gentoo.org
In Reply to: [gentoo-dev] [PATCH] eclass/java-utils-2.eclass: testng print verbose output by "Volkmar W. Pogatzki"
1 On 28/06/2022 19.04, Volkmar W. Pogatzki wrote:
2 > Bug: https://bugs.gentoo.org/801694
3 > Signed-off-by: Volkmar W. Pogatzki <gentoo@××××××××.net>
4 > ---
5 > eclass/java-utils-2.eclass | 4 +++-
6 > 1 file changed, 3 insertions(+), 1 deletion(-)
7 >
8 > diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
9 > index e5a2b611d11..cfe04d631a0 100644
10 > --- a/eclass/java-utils-2.eclass
11 > +++ b/eclass/java-utils-2.eclass
12 > @@ -1901,7 +1901,9 @@ etestng() {
13 > ${JAVA_TEST_RUNNER_EXTRA_ARGS[@]}
14 > )
15 >
16 > - [[ ! "${JAVA_TEST_RUNNER_EXTRA_ARGS[@]}" =~ "-usedefaultlisteners" ]] && args+=( -usedefaultlisteners false )
17 > + if [[ ! "${JAVA_TEST_RUNNER_EXTRA_ARGS[@]}" =~ "-usedefaultlisteners" ]]; then
18 > + args+=( -verbose 3 -usedefaultlisteners true )
19 > + fi
20 >
21 > args+=( -testclass ${tests} )
22
23 LGTM, but I would split the args value in multiple lines, which makes it
24 clear what the argument name and the argument value is and hence makes
25 it easier to read:
26
27 args+=(
28 -verbose 3
29 -usedefaultlisteners true
30 )
31
32 - Flow