From 94b08d37cf8861f9186544fbb7d3751a20668f86 Mon Sep 17 00:00:00 2001 From: Stamatis Zampetakis Date: Fri, 19 Jan 2024 15:47:42 +0100 Subject: [PATCH] TEZ-4533: Source release distribution must not contain TestIFile_concatenated_compressed.bin TestIFile_concatenated_compressed.bin file must not be present in the source distribution. To avoid test failures when building from source just skip the test if the file is missing. --- .../apache/tez/runtime/library/common/sort/impl/TestIFile.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tez-runtime-library/src/test/java/org/apache/tez/runtime/library/common/sort/impl/TestIFile.java b/tez-runtime-library/src/test/java/org/apache/tez/runtime/library/common/sort/impl/TestIFile.java index 960aee345a..1526572929 100644 --- a/tez-runtime-library/src/test/java/org/apache/tez/runtime/library/common/sort/impl/TestIFile.java +++ b/tez-runtime-library/src/test/java/org/apache/tez/runtime/library/common/sort/impl/TestIFile.java @@ -18,6 +18,7 @@ package org.apache.tez.runtime.library.common.sort.impl; +import static org.hamcrest.CoreMatchers.notNullValue; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotEquals; @@ -400,7 +401,7 @@ public void testConcatenatedZlibPadding() URL url = getClass().getClassLoader() .getResource("TestIFile_concatenated_compressed.bin"); - assertNotEquals("IFileinput file must exist", null, url); + Assume.assumeThat("IFileinput file must exist", url, notNullValue()); Path p = new Path(url.toURI()); FSDataInputStream inStream = localFs.open(p);