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:
parent
21333cfb81
commit
9b65d30bad
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue