change all tests to call functions instead of binary directly

I had to temporarely hack github.com/mvdan/sh to fix dir handling
This commit is contained in:
Andrey Nering
2017-07-01 15:32:13 -03:00
parent 9ba44f3e6e
commit ecfd8e8a62
4 changed files with 48 additions and 37 deletions

View File

@@ -53,7 +53,11 @@ hello:
}
if init {
if err := task.InitTaskfile(); err != nil {
wd, err := os.Getwd()
if err != nil {
log.Fatal(err)
}
if err := task.InitTaskfile(wd); err != nil {
log.Fatal(err)
}
return