Remove flags from tests

This commit is contained in:
Alexander Neumann 2015-06-13 12:35:19 +02:00
parent 002c7883c3
commit 030f08a410
7 changed files with 44 additions and 20 deletions

View file

@ -103,11 +103,11 @@ var nodeTests = []restic.Node{
}
func TestNodeRestoreAt(t *testing.T) {
tempdir, err := ioutil.TempDir(*TestTempDir, "restic-test-")
tempdir, err := ioutil.TempDir(TestTempDir, "restic-test-")
OK(t, err)
defer func() {
if *TestCleanup {
if TestCleanup {
OK(t, os.RemoveAll(tempdir))
} else {
t.Logf("leaving tempdir at %v", tempdir)