forked from TrueCloudLab/restic
Make TestWalkerPath absolute before walking
This commit is contained in:
parent
c6a1f2e2f3
commit
811dbfa52d
1 changed files with 12 additions and 0 deletions
|
@ -54,6 +54,12 @@ func TestPipelineWalkerWithSplit(t *testing.T) {
|
||||||
t.Skipf("walkerpath not set, skipping TestPipelineWalker")
|
t.Skipf("walkerpath not set, skipping TestPipelineWalker")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var err error
|
||||||
|
if !filepath.IsAbs(TestWalkerPath) {
|
||||||
|
TestWalkerPath, err = filepath.Abs(TestWalkerPath)
|
||||||
|
OK(t, err)
|
||||||
|
}
|
||||||
|
|
||||||
before, err := statPath(TestWalkerPath)
|
before, err := statPath(TestWalkerPath)
|
||||||
OK(t, err)
|
OK(t, err)
|
||||||
|
|
||||||
|
@ -144,6 +150,12 @@ func TestPipelineWalker(t *testing.T) {
|
||||||
t.Skipf("walkerpath not set, skipping TestPipelineWalker")
|
t.Skipf("walkerpath not set, skipping TestPipelineWalker")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var err error
|
||||||
|
if !filepath.IsAbs(TestWalkerPath) {
|
||||||
|
TestWalkerPath, err = filepath.Abs(TestWalkerPath)
|
||||||
|
OK(t, err)
|
||||||
|
}
|
||||||
|
|
||||||
before, err := statPath(TestWalkerPath)
|
before, err := statPath(TestWalkerPath)
|
||||||
OK(t, err)
|
OK(t, err)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue