mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 03:45:44 +01:00
test: Unset user GNUPGHOME env var for gnuPGHome
Signed-off-by: uncenter <uncenter@uncenter.dev>
This commit is contained in:
@@ -682,6 +682,7 @@ func Test_gpgBinary(t *testing.T) {
|
||||
}
|
||||
|
||||
func Test_gnuPGHome(t *testing.T) {
|
||||
t.Setenv("GNUPGHOME", "")
|
||||
usr, err := user.Current()
|
||||
if err == nil {
|
||||
assert.Equal(t, filepath.Join(usr.HomeDir, ".gnupg"), gnuPGHome(""))
|
||||
|
||||
Reference in New Issue
Block a user