
This makes the engine more general purpose so that we can use it and the job routing functionality for reexec'ing our binary Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael) Conflicts: integration/runtime_test.go
19 lines
283 B
Go
19 lines
283 B
Go
package engine
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
var globalTestID string
|
|
|
|
func newTestEngine(t *testing.T) *Engine {
|
|
eng, err := New()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
return eng
|
|
}
|
|
|
|
func mkJob(t *testing.T, name string, args ...string) *Job {
|
|
return newTestEngine(t).Job(name, args...)
|
|
}
|