mirror of
https://github.com/restic/restic.git
synced 2026-11-23 23:12:52 +00:00
tests: Remove more flags
This commit is contained in:
1 parent
189a33730a
commit
26e4d2e019
8 files changed
+52
-87
No files matched your search
+1
-4
@@ -1,7 +1,6 @@
|
||||
package restic_test
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
@@ -10,13 +9,11 @@ import (
|
||||
. "github.com/restic/restic/test"
|
||||
)
|
||||
|
||||
var testWalkDirectory = flag.String("test.walkdir", ".", "test walking a directory (globbing pattern, default: .)")
|
||||
|
||||
func TestWalkTree(t *testing.T) {
|
||||
repo := SetupRepo()
|
||||
defer TeardownRepo(repo)
|
||||
|
||||
dirs, err := filepath.Glob(*testWalkDirectory)
|
||||
dirs, err := filepath.Glob(TestWalkerPath)
|
||||
OK(t, err)
|
||||
|
||||
// archive a few files
|
||||
|
||||
Reference in new issue
Block a user