~sircmpwn/forgeperf

bc4e837395e517e3d96ade79beba0f009244c1ee — Drew DeVault 2 months ago eeba05f
Move url to end of lighthouse command
1 files changed, 3 insertions(+), 2 deletions(-)

M main.go
M main.go => main.go +3 -2
@@ 40,13 40,14 @@ func runReport(host, task, url string) *schema.LighthouseReport {
		if err != nil {
			panic(err)
		}
		cmd := exec.Command("lighthouse", url,
		cmd := exec.Command("lighthouse",
			"--output", "html",
			"--output", "json",
			"--only-categories=performance,accessibility",
			"--profile=desktop",
			"--throttling.cpuSlowdownMultiplier=1",
			fmt.Sprintf("--output-path=report/results/%s.%s", host, task))
			fmt.Sprintf("--output-path=report/results/%s.%s", host, task),
			url)
		cmd.Env = nil
		cmd.Stderr = f
		err = cmd.Run()