-
Notifications
You must be signed in to change notification settings - Fork 16
/
runner.go
46 lines (39 loc) · 1.24 KB
/
runner.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package runner
import (
"context"
"github.com/saucelabs/saucectl/cli/command"
"github.com/saucelabs/saucectl/internal/config"
"github.com/saucelabs/saucectl/internal/fleet"
"github.com/saucelabs/saucectl/internal/utils"
)
const logDir = "/var/log/cont"
var homeDir = utils.GetProjectDir()
// ConfigPath represents the path for the runner config.
var ConfigPath = homeDir + "/config.yaml"
// LogFiles contains the locations of log and resource files that are useful for reporting.
var LogFiles = []string{
logDir + "/chrome_browser.log",
logDir + "/firefox_browser.log",
logDir + "/supervisord.log",
logDir + "/video-rec-stderr.log",
logDir + "/video-rec-stdout.log",
logDir + "/wait-xvfb.1.log",
logDir + "/wait-xvfb.2.log",
logDir + "/wait-xvfb-stdout.log",
logDir + "/xvfb-tryouts-stderr.log",
logDir + "/xvfb-tryouts-stdout.log",
homeDir + "/videos/video.mp4",
homeDir + "/docker.log",
}
// Testrunner describes the test runner interface
type Testrunner interface {
RunProject() (int, error)
}
// BaseRunner contains common properties across all runners
type BaseRunner struct {
Project config.Project
RunnerConfig config.RunnerConfiguration
Ctx context.Context
Cli *command.SauceCtlCli
Sequencer fleet.Sequencer
}