Don't launch browser for integration tests

This commit is contained in:
Lode Hoste
2015-05-07 20:53:44 +02:00
parent 152cdd1750
commit 4950980d69
2 changed files with 5 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ func TestCLIReset(t *testing.T) {
// Run reset to clean up
cmd := exec.Command("../bin/syncthing", "-home", "h1", "-reset")
cmd := exec.Command("../bin/syncthing", "-no-browser", "-home", "h1", "-reset")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stdout
err := cmd.Run()
@@ -65,7 +65,7 @@ func TestCLIGenerate(t *testing.T) {
// -generate should create a bunch of stuff
cmd := exec.Command("../bin/syncthing", "-generate", "home.out")
cmd := exec.Command("../bin/syncthing", "-no-browser", "-generate", "home.out")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stdout
err = cmd.Run()
@@ -91,7 +91,7 @@ func TestCLIFirstStartup(t *testing.T) {
// First startup should create config, BEP certificate, and HTTP certificate.
cmd := exec.Command("../bin/syncthing", "-home", "home.out")
cmd := exec.Command("../bin/syncthing", "-no-browser", "-home", "home.out")
cmd.Env = append(os.Environ(), "STNORESTART=1")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stdout