You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/10/18 10:30:26 UTC
[commons-rng] 01/02: Do not report results if ignorePartialResults
is true.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git
commit d9b6fc1f5a6a51a618dd56e6dcaecb6e879b6c36
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 17 16:08:20 2019 +0100
Do not report results if ignorePartialResults is true.
---
.../java/org/apache/commons/rng/examples/stress/ResultsCommand.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/ResultsCommand.java b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/ResultsCommand.java
index d42e5b0..53c097a 100644
--- a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/ResultsCommand.java
+++ b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/ResultsCommand.java
@@ -447,10 +447,13 @@ class ResultsCommand implements Callable<Void> {
} else {
for (final List<String> testOutput : outputs) {
final TestResult result = readResult(resultFile, testOutput);
- results.add(result);
if (!result.isComplete()) {
LogUtils.info("Partial results in file: %s", resultFile);
+ if (ignorePartialResults) {
+ continue;
+ }
}
+ results.add(result);
}
}
}