This is an automated email from the ASF dual-hosted git repository.
mboehm7 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 b7e101e627 [MINOR] Fix old tests with redundant writes of inputs files
b7e101e627 is described below
commit b7e101e627368538982c34a8775a6c41ed24cfed
Author: Matthias Boehm <[email protected]>
AuthorDate: Wed Jul 16 18:34:09 2025 +0200
[MINOR] Fix old tests with redundant writes of inputs files
---
.../ElementwiseAdditionMultiplicationTest.java | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git
a/src/test/java/org/apache/sysds/test/functions/binary/matrix/ElementwiseAdditionMultiplicationTest.java
b/src/test/java/org/apache/sysds/test/functions/binary/matrix/ElementwiseAdditionMultiplicationTest.java
index bf92a63c45..752813b6a7 100644
---
a/src/test/java/org/apache/sysds/test/functions/binary/matrix/ElementwiseAdditionMultiplicationTest.java
+++
b/src/test/java/org/apache/sysds/test/functions/binary/matrix/ElementwiseAdditionMultiplicationTest.java
@@ -53,10 +53,11 @@ public class ElementwiseAdditionMultiplicationTest extends
AutomatedTestBase
config.addVariable("cols", cols);
loadTestConfiguration(config);
- double[][] a = createRandomMatrix("a", rows, cols, 0, 10, 1,
new Date().getTime());
- double[][] b = createRandomMatrix("b", rows, cols, 0, 10, 1,
new Date().getTime() + 1);
- double[][] c = createRandomMatrix("c", rows, cols, 0, 10, 1,
new Date().getTime() + 2);
- double[][] d = createRandomMatrix("d", rows, cols, 0, 10, 1,
new Date().getTime() + 4);
+ cleanupDir(baseDirectory + INPUT_DIR, true);
+ double[][] a = getRandomMatrix( rows, cols, 0, 10, 1, new
Date().getTime());
+ double[][] b = getRandomMatrix(rows, cols, 0, 10, 1, new
Date().getTime() + 1);
+ double[][] c = getRandomMatrix(rows, cols, 0, 10, 1, new
Date().getTime() + 2);
+ double[][] d = getRandomMatrix(rows, cols, 0, 10, 1, new
Date().getTime() + 4);
writeInputMatrixWithMTD("a", a, false);
writeInputMatrixWithMTD("b", b, false);
writeInputMatrixWithMTD("c", c, false);
@@ -85,9 +86,9 @@ public class ElementwiseAdditionMultiplicationTest extends
AutomatedTestBase
config.addVariable("cols", cols);
loadTestConfiguration(config);
- double[][] a = createRandomMatrix("a", rows, cols, 0, 10, 1,
new Date().getTime());
- double[][] b = createRandomMatrix("b", rows, cols, 0, 10, 1,
new Date().getTime() + 1);
- double[][] c = createRandomMatrix("c", rows, cols, 0, 10, 1,
new Date().getTime() + 4);
+ double[][] a = getRandomMatrix(rows, cols, 0, 10, 1, new
Date().getTime());
+ double[][] b = getRandomMatrix(rows, cols, 0, 10, 1, new
Date().getTime() + 1);
+ double[][] c = getRandomMatrix(rows, cols, 0, 10, 1, new
Date().getTime() + 4);
writeInputMatrixWithMTD("a", a, false);
writeInputMatrixWithMTD("b", b, false);
writeInputMatrixWithMTD("c", c, false);
@@ -115,9 +116,9 @@ public class ElementwiseAdditionMultiplicationTest extends
AutomatedTestBase
config.addVariable("cols", cols);
loadTestConfiguration(config);
- double[][] a = createRandomMatrix("a", rows, cols, 0, 10, 1,
new Date().getTime());
- double[][] b = createRandomMatrix("b", rows, cols, 0, 10, 1,
new Date().getTime() + 1);
- double[][] c = createRandomMatrix("c", rows, cols, 0, 10, 1,
new Date().getTime() + 2);
+ double[][] a = getRandomMatrix(rows, cols, 0, 10, 1, new
Date().getTime());
+ double[][] b = getRandomMatrix(rows, cols, 0, 10, 1, new
Date().getTime() + 1);
+ double[][] c = getRandomMatrix(rows, cols, 0, 10, 1, new
Date().getTime() + 2);
writeInputMatrixWithMTD("a", a, false);
writeInputMatrixWithMTD("b", b, false);
writeInputMatrixWithMTD("c", c, false);