Commit 2e82e01d authored by ale's avatar ale

Clear restic env vars in test

Prevents interactions from the local environment where the test is running.
parent 2c920d23
......@@ -114,7 +114,7 @@ func TestRestic(t *testing.T) {
}
// Check the 'restic snapshots' output.
output, err := exec.Command("env", "RESTIC_PASSWORD=testpass", "restic", "-r", tmpdir+"/repo", "snapshots", "--json").Output()
output, err := exec.Command("env", "RESTIC_REPOSITORY=", "RESTIC_PASSWORD_FILE=", "RESTIC_PASSWORD=testpass", "restic", "-r", tmpdir+"/repo", "snapshots", "--json").Output()
if err != nil {
t.Fatalf("'restic snapshots' failed: %v", err)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment