diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-01-26 18:47:22 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-01-26 18:47:22 +0000 |
commit | 8a5aec197cbd248bc9c83d6185df6c8ac5e93888 (patch) | |
tree | 6a3ccc5c70a04e304958f538305ab7cfb7450ca9 /yarns/0200-repo-formats.yarn | |
parent | 5498115dec3c043f9642bbfe7439cf00513c1b16 (diff) | |
download | obnam-8a5aec197cbd248bc9c83d6185df6c8ac5e93888.tar.gz |
Avoid using the src tree gpghome
Diffstat (limited to 'yarns/0200-repo-formats.yarn')
-rw-r--r-- | yarns/0200-repo-formats.yarn | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yarns/0200-repo-formats.yarn b/yarns/0200-repo-formats.yarn index 4d0429d5..6520fbfd 100644 --- a/yarns/0200-repo-formats.yarn +++ b/yarns/0200-repo-formats.yarn @@ -68,7 +68,10 @@ user with the same uid as recorded in the reference repository. That would almost always break the test for other people, including CI. IMPLEMENTS WHEN user (\S+) restores generation (\d+) in (\S+) to (\S+) - export GNUPGHOME="$SRCDIR/test-gpghome" + # Copy the keyrings from source tree so they don't get modified + # by this test. + cp -a "$SRCDIR/test-gpghome" "$DATADIR/.gnupg" + export GNUPGHOME="$DATADIR/.gnupg" genid=$(run_obnam "$MATCH_1" -r "$DATADIR/$MATCH_3" \ --encrypt-with=3B1802F81B321347 genids | sed -n "${MATCH_2}p") run_obnam "$MATCH_1" -r "$DATADIR/$MATCH_3" \ |