Fix tests to pass on linux

This commit is contained in:
bel
2020-03-13 03:40:53 +00:00
parent 6d39ef9aa2
commit 0d6be1e9d8
6 changed files with 185 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ package scheduler
import (
"bytes"
"encoding/gob"
"fmt"
"local/firestormy/logger"
"os/exec"
@@ -41,7 +42,7 @@ func newBashJob(schedule, sh string) (*Job, error) {
if err != nil {
panic(err)
}
logger.New().Info("executed %s: %s", sh, out)
logger.New().Info(fmt.Sprintf("executed %s: %s", sh, out))
},
}, nil
}