Subject: Re: bug#18575: package-test-signed should use skip-unless, not expected-result

From: Glenn Morris <[email-masked]>
Date: Sat, 27 Sep 2014 18:01:42 -0400

Glenn Morris wrote:

> package-test-signed should use skip-unless rather than expected-result.
> The latter can lead to false "failures" when the test succeeds, eg
>
> https://hydra.nixos.org/build/14915239/log/raw

The fact that the test can pass even when epg-check-configuration fails
probably indicates that is the wrong thing to test anyway. The cause on
hydra is probably that HOME does not exist, which causes gpg
--list-config to fail:

  HOME=/tmp/foo/bar  gpg --with-colons --list-config
  gpg: fatal: can't create directory `/tmp/foo/bar/.gnupg': No such file or directory

Perhaps tests should bind epg-gpg-home-directory to a suitable value.