Skip to content

Commit

Permalink
ci: set temporary home before importing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-monch committed Nov 8, 2024
1 parent e128d3c commit d279da9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion datalad_remake/annexremotes/tests/test_remake_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,13 @@ def send(self, value):
def test_compute_remote_main(tmp_path, datalad_cfg, monkeypatch, trusted):
if trusted:
gpg_homedir = tmp_path / 'tmp_gpg_dir'
tmp_home = tmp_path / 'tmp_home'

# make sure that the users keystore is not overwritten
monkeypatch.setenv('HOME', str(tmp_home))

# Generate a keypair
signing_key, _ = import_keypairs(gpg_homedir)
signing_key, _ = import_keypairs(gpg_dir=gpg_homedir)

# Activate the new keys
monkeypatch.setenv('GNUPGHOME', str(gpg_homedir))
Expand Down

0 comments on commit d279da9

Please sign in to comment.