From 55ef39e2a52e5f677a72a4cac517ebb30ed590b8 Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Wed, 21 Apr 2021 19:22:54 -0500 Subject: [PATCH] revert stderr output change for now --- engine-cli/src/main/java/io/nosqlbench/engine/cli/NBCLI.java | 2 +- .../io/nosqlbench/cli/testing/ExitStatusIntegrationTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine-cli/src/main/java/io/nosqlbench/engine/cli/NBCLI.java b/engine-cli/src/main/java/io/nosqlbench/engine/cli/NBCLI.java index 6dbf16119..1e820fd7c 100644 --- a/engine-cli/src/main/java/io/nosqlbench/engine/cli/NBCLI.java +++ b/engine-cli/src/main/java/io/nosqlbench/engine/cli/NBCLI.java @@ -72,7 +72,7 @@ public class NBCLI { String error = ScenarioErrorHandler.handle(e, false); // Commented for now, as the above handler should do everything needed. if (error != null) { - System.err.println("Scenario stopped due to error above."); + System.err.println("Scenario stopped due to error. See logs for details."); } System.err.flush(); System.out.flush(); diff --git a/nb/src/test/java/io/nosqlbench/cli/testing/ExitStatusIntegrationTests.java b/nb/src/test/java/io/nosqlbench/cli/testing/ExitStatusIntegrationTests.java index 4b69f6867..319494b9f 100644 --- a/nb/src/test/java/io/nosqlbench/cli/testing/ExitStatusIntegrationTests.java +++ b/nb/src/test/java/io/nosqlbench/cli/testing/ExitStatusIntegrationTests.java @@ -39,7 +39,7 @@ public class ExitStatusIntegrationTests { "badparam" ); String stderr = result.getStderrData().stream().collect(Collectors.joining("\n")); - assertThat(stderr).contains("unrecognized option:badparam"); + assertThat(stderr).contains("Scenario stopped due to error"); assertThat(result.exitStatus).isEqualTo(2); }