From d8d09b6d691d9b7b91183810a546b462c532b55d Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Thu, 11 Jun 2015 21:07:51 +0200 Subject: [PATCH] Fix restic configuration for integration tests --- cmd/restic/integration_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/restic/integration_test.go b/cmd/restic/integration_test.go index f07c35d10..63c74691e 100644 --- a/cmd/restic/integration_test.go +++ b/cmd/restic/integration_test.go @@ -24,12 +24,11 @@ func setupTempdir(t testing.TB) (tempdir string) { } func configureRestic(t testing.TB, tempdir string) { - // use cache dir within tempdir - OK(t, os.Setenv("RESTIC_CACHE", filepath.Join(tempdir, "cache"))) - - // configure environment + opts.CacheDir = filepath.Join(tempdir, "cache") opts.Repo = filepath.Join(tempdir, "repo") - OK(t, os.Setenv("RESTIC_PASSWORD", *TestPassword)) + opts.Quiet = true + + opts.password = *TestPassword } func cleanupTempdir(t testing.TB, tempdir string) {