[rfc][icedtea-web] Fix CacheReproducerTest

Jiri Vanek jvanek at redhat.com
Thu Aug 29 06:59:01 PDT 2013


On 08/29/2013 03:13 PM, Andrew Azores wrote:
> Changelog:
> * tests/reproducers/signed/CacheReproducer/testcases/CacheReproducerTest.java: (icedteaDir) field
> updated to reflect new ITW cache location from XDG spec. (clearCacheUnsucessfully) checks for
> correct "can not clear the cache" error message
>
> Not much going on here, really :). This is the start of my effort to stabilize reproducers. Looks
> like I got lucky with my first set to fix, because this turned out to be very very easy. There is
> one "KnownToFail" test in here that occasionally passes, so I will also look into that, but these
> two small changes stand on their own to fix the rest of the tests at least.
>
> Thanks,
>

Nice catch. My wrong I overlooked the hard coded path.

However - the test case can see the libraries, and the real cache(/config) path is now in Defaults. 
So I think it would be better to get rid of this hard coded path completely and replace by 
variable[1] (there was no variable in time of this test writing). This variable should be filled 
correctly no meter if custom XDG variable i set.


J.

[1]http://icedtea.classpath.org/hg/icedtea-web/file/420d72e5cee7/netx/net/sourceforge/jnlp/config/Defaults.java#l58

If you do not wont to use the full path (but why not), then maybe just 
http://icedtea.classpath.org/hg/icedtea-web/file/420d72e5cee7/netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java#l53




More information about the distro-pkg-dev mailing list