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

baunsgaard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git


The following commit(s) were added to refs/heads/main by this push:
     new 06886ec5f7 [MINOR] Error from testUtils do not write more than the 
first 10 errors.
06886ec5f7 is described below

commit 06886ec5f79a9e29362efaa1bff70b7563fe02fe
Author: baunsgaard <[email protected]>
AuthorDate: Mon Apr 24 14:37:50 2023 +0200

    [MINOR] Error from testUtils do not write more than the first 10 errors.
---
 src/test/java/org/apache/sysds/test/TestUtils.java | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/sysds/test/TestUtils.java 
b/src/test/java/org/apache/sysds/test/TestUtils.java
index 554e1f5a05..65e89f6e6a 100644
--- a/src/test/java/org/apache/sysds/test/TestUtils.java
+++ b/src/test/java/org/apache/sysds/test/TestUtils.java
@@ -1569,10 +1569,12 @@ public class TestUtils
                        if (!compareCellValue(v1, v2, 0, ignoreNaN)) {
                                if (!compareCellValue(v1, v2, tolerance, 
ignoreNaN)) {
                                        countErrorWithinTolerance++;
-                                       if(!flag)
-                                               LOG.error(e.getKey() + ": " + 
v1 + " <--> " + v2);
-                                       else
-                                               LOG.error(e.getKey() + ": " + 
v2 + " <--> " + v1);
+                                       if(countErrorWithinTolerance < 10){
+                                               if(!flag)
+                                                       LOG.error(e.getKey() + 
": " + v1 + " <--> " + v2);
+                                               else
+                                                       LOG.error(e.getKey() + 
": " + v2 + " <--> " + v1);
+                                       }
 
                                }
                        } else {

Reply via email to