1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-15 17:50:51 +00:00

ssh-to-pgp: fix tests

This commit is contained in:
Jörg Thalheim 2020-12-15 04:05:56 +01:00
parent 21333cfb81
commit 9b65d30bad
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -30,8 +30,10 @@ func TempRoot() string {
}
func TestCli(t *testing.T) {
_, filename, _, _ := runtime.Caller(0)
assets := path.Join(path.Dir(filename), "test-assets")
assets := os.Getenv("TEST_ASSETS")
if assets == "" {
assets = "test-assets"
}
tempdir, err := ioutil.TempDir(TempRoot(), "testdir")
ok(t, err)
defer os.RemoveAll(tempdir)