Skip to content

Commit

Permalink
E2E: don’t collect logs if soak test (Azure#2240)
Browse files Browse the repository at this point in the history
* don’t collect logs if soak test

* this!
  • Loading branch information
jackfrancis authored and Terje Torkelsen committed Mar 15, 2018
1 parent cf128cc commit 88ed057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func trap() {
func teardown() {
pt.RecordTotalTime()
pt.Write()
if cliProvisioner.Config.IsKubernetes() {
if cliProvisioner.Config.IsKubernetes() && cfg.SoakClusterName == "" {
hostname := fmt.Sprintf("%s.%s.cloudapp.azure.com", cfg.Name, cfg.Location)
logsPath := filepath.Join(cfg.CurrentWorkingDir, "_logs", hostname)
err := os.MkdirAll(logsPath, 0755)
Expand Down

0 comments on commit 88ed057

Please sign in to comment.