"Error: Group is invalid" if there are non-existing directories

Jonathan Gibbons jonathan.gibbons at oracle.com
Wed Aug 26 16:28:49 UTC 2015


On 08/26/2015 09:06 AM, Weijun Wang wrote:
> I've just updated my local jtreg to 4.1 b12 and noticed a difference.
>
> When working on a bug I had the habit to create a new repo for it and 
> remove unrelated tests, so when I call "make jdk_security4" it will 
> run much faster. This worked fine but with b12 if a directory is 
> missing I will see an error
>
>   .../jdk/test/TEST.groups: group jdk_security4: file not found: 
> com/sun/security/jgss
>   Error: Group is invalid: jdk_security4
>
> Is this necessary?
>
> On the other hand, even if jdk_security includes jdk_security4, 
> running make on it does not fail immediately.
>
> Thanks
> Max

Max,

It is hard to distinguish between mistyped pathnames and 
deliberately-missing directories, and I would prefer to go with the more 
generally useful case of catching mistyped pathnames.

Do you really need to remove tests?   Surely there are enough selection 
mechanisms in jtreg for you to select the tests you want? If you're 
prepared to "hack" the repo by removing files, why not just add in a 
temporary group called "my_tests" instead?

-- Jon


More information about the jtreg-dev mailing list