mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-03-16 05:28:15 +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) {
|
func TestCli(t *testing.T) {
|
||||||
_, filename, _, _ := runtime.Caller(0)
|
assets := os.Getenv("TEST_ASSETS")
|
||||||
assets := path.Join(path.Dir(filename), "test-assets")
|
if assets == "" {
|
||||||
|
assets = "test-assets"
|
||||||
|
}
|
||||||
tempdir, err := ioutil.TempDir(TempRoot(), "testdir")
|
tempdir, err := ioutil.TempDir(TempRoot(), "testdir")
|
||||||
ok(t, err)
|
ok(t, err)
|
||||||
defer os.RemoveAll(tempdir)
|
defer os.RemoveAll(tempdir)
|
||||||
|
|
Loading…
Add table
Reference in a new issue