Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Justus/make tests more robust #1213

Merged
merged 3 commits into from Jul 24, 2020

Conversation

teythoon
Copy link

No description provided.

Justus Winter added 3 commits July 22, 2020 11:02
Let the shell locate 'cp'.  This is more robust in environments such
as Guix or Nix that do not provide /bin/cp.
GnuPG will try to read its state even for operations that do not
require it, e.g. listing packets.  If the state directory does not
exist, GnuPG will try to create it.  If this fails, GnuPG errors out.

In some build environments, $HOME may not exist or may not be
writable (e.g. in Guix and Nix, $HOME does not exist).  This leads to
a spurious test failures when GnuPG is invoked to inspect packets.

Fix this by using the current directory as GnuPG state directory.
Previously, a failing test leaving RNP or GnuPG state directories
behind would cause all tests following it to fail.  Improve this by
removing the directories first should they exist.
Copy link
Contributor

@ni4 ni4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Contributor

@ronaldtse ronaldtse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @teythoon !

@ronaldtse ronaldtse merged commit 203224f into rnpgp:master Jul 24, 2020
@ni4 ni4 added this to the v0.14.0 milestone Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants