Subject: Re: [bug#30062] [PATCH core-updates] gnu: java-ops4j-pax-tinybundles: Disable failing test.

From: julien lepiller <[email-masked]>
Date: Wed, 10 Jan 2018 11:33:48 +0100

Le 2018-01-10 10:33, Gábor Boskovits a écrit :
> * gnu/packages/java.scm (java-ops4j-pax-tinybundles)[arguments]:
> Modify #:test-exclude
> to disable all bnd tests.
> 
> The bnd testsuite hardcodes the version of bnd, making it impossible
> to update bnd
> independently. Disable it to avoid test failures on bnd updates.
> ---
>  gnu/packages/java.scm | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
> index e1e9093df..3e32eb882 100644
> --- a/gnu/packages/java.scm
> +++ b/gnu/packages/java.scm
> @@ -6054,7 +6054,8 @@ it manages project dependencies, gives diffs
> jars, and much more.")
>         #:source-dir "src/main/java"
>         #:test-exclude
>         ;; Abstract base classes for other tests
> -       (list "**/BndTest.java" "**/CoreTest.java")
> +       ;; Disable bnd tests, they hardcode the version of bnd.
> +       (list "**/Bnd*Test.java" "**/CoreTest.java")
>         #:phases
>         (modify-phases %standard-phases
>           (add-before 'check 'fix-version

Couldn't we use substitute* to replace the hardcoded version with our 
own version of bnd?