GNU bug report logs -
#30062
[PATCH core-updates] gnu: java-ops4j-pax-tinybundles: Disable failing test.
Previous Next
Reported by: Gábor Boskovits <boskovits <at> gmail.com>
Date: Wed, 10 Jan 2018 09:35:02 UTC
Severity: normal
Tags: patch
Done: Danny Milosavljevic <dannym <at> scratchpost.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Gábor Boskovits <boskovits <at> gmail.com> writes:
> Hello Chris!
>
> Could you help me out on this?
>
> It seems that I should somehow extract the version string from the input to
> use in substitute*, to fix the version string in tests. What would be the
> proper way of doing this?
It looks like the existing code is already substituting the version
string (by hard-coding it):
--8<---------------cut here---------------start------------->8---
(arguments
`(#:jar-name "java-ops4j-pax-tinybundles.jar"
#:source-dir "src/main/java"
#:test-exclude
;; Abstract base classes for other tests
(list "**/BndTest.java" "**/CoreTest.java")
#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-version
(lambda _
;; This test has a reference to an old version of bndlib we are not
;; packaging. It uses the version referenced in pom.xml. We replace
;; it with our own version.
(substitute* "src/test/java/org/ops4j/pax/tinybundles/bnd/BndTest.java"
(("2.4.0.201411031534") "3.4.0")))))))
--8<---------------cut here---------------end--------------->8---
I think we could probably just make a change like the following (I
haven't tested this, though):
--8<---------------cut here---------------start------------->8---
(substitute* "src/test/java/org/ops4j/pax/tinybundles/bnd/BndTest.java"
- (("2.4.0.201411031534") "3.4.0")))))))
+ (("2.4.0.201411031534") ,(package-version java-aqute-bndlib))))))))
--8<---------------cut here---------------end--------------->8---
The comma is 'unquote' (see: (guile) Expression Syntax), which should
insert the package version of java-aqute-bndlib into the quasi-quoted
list.
Does that help?
--
Chris
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 7 years and 81 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.