You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ri...@apache.org on 2022/08/08 16:28:00 UTC

[ozone] branch master updated: HDDS-7066. Include number of tests requested in Freon output (#3638)

This is an automated email from the ASF dual-hosted git repository.

ritesh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 7d50d29d51 HDDS-7066. Include number of tests requested in Freon output (#3638)
7d50d29d51 is described below

commit 7d50d29d51934409841cab58c3d9d4531567673f
Author: Neil Joshi <ne...@gmail.com>
AuthorDate: Mon Aug 8 10:27:55 2022 -0600

    HDDS-7066. Include number of tests requested in Freon output (#3638)
---
 .../java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java    | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java
index 710efa3bcf..8f0b0072f9 100644
--- a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java
+++ b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java
@@ -250,7 +250,8 @@ public class BaseFreonGenerator {
       //replace environment variables to support multi-node execution
       prefix = resolvePrefix(prefix);
     }
-    LOG.info("Executing test with prefix {}", prefix);
+    LOG.info("Executing test with prefix {} " +
+        "and number-of-tests {}", prefix, testNo);
 
     pathSchema = new PathSchema(prefix);
 
@@ -301,6 +302,11 @@ public class BaseFreonGenerator {
         Math.round((System.currentTimeMillis() - startTime) / 1000.0));
     messages.add("Failures: " + failureCounter.get());
     messages.add("Successful executions: " + successCounter.get());
+    if (failureCounter.get() > 0) {
+      messages.add("Expected " + testNo
+          + " --number-of-tests objects!, successfully executed "
+          + successCounter.get());
+    }
 
     Consumer<String> print = freonCommand.isInteractive()
         ? System.out::println


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org