Skip to content

Commit

Permalink
watching: don't output non-json if output is set to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
tisba committed Oct 12, 2018
1 parent a4e5cf5 commit 55d10d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/testcase_launch.go
Expand Up @@ -216,7 +216,10 @@ Web URL: %s
}

if testRunLaunchOpts.Watch || testRunLaunchOpts.CheckNFR != "" || testRunLaunchOpts.Validate {
fmt.Println("\nWatching...")
if rootOpts.OutputFormat != "json" {
fmt.Println("\nWatching...")
}

watchTestRun(testRun.ID, testRunLaunchOpts.MaxWatchTime.Round(time.Second).Seconds(), rootOpts.OutputFormat)

if testRunLaunchOpts.CheckNFR != "" || testRunLaunchOpts.Validate {
Expand Down

0 comments on commit 55d10d7

Please sign in to comment.