Make TestWalkerPath absolute before walking

This commit is contained in:
Alexander Neumann 2016-02-07 19:34:02 +01:00
parent c6a1f2e2f3
commit 811dbfa52d
1 changed files with 12 additions and 0 deletions

View File

@ -54,6 +54,12 @@ func TestPipelineWalkerWithSplit(t *testing.T) {
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)
OK(t, err)
@ -144,6 +150,12 @@ func TestPipelineWalker(t *testing.T) {
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)
OK(t, err)