Add extra directories to path used in repo_add_test.go

Signed-off-by: Guy Bolton King <guy@waftex.com>
pull/10590/head
Guy Bolton King 3 years ago
parent c7e1f9b046
commit ad6b4fe210
No known key found for this signature in database
GPG Key ID: A5F222BE0AC7C0E1

@ -48,7 +48,11 @@ func TestRepoAddCmd(t *testing.T) {
} }
defer srv2.Stop() defer srv2.Stop()
tmpdir := ensure.TempDir(t) tmpdir := filepath.Join(ensure.TempDir(t), "path-component/data")
err = os.MkdirAll(tmpdir, 0777)
if err != nil {
t.Fatal(err)
}
repoFile := filepath.Join(tmpdir, "repositories.yaml") repoFile := filepath.Join(tmpdir, "repositories.yaml")
tests := []cmdTestCase{ tests := []cmdTestCase{

Loading…
Cancel
Save