|
@@ -13,13 +13,16 @@
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
# limitations under the License.
|
|
|
|
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
+cd "$DIR/../../.." || exit 1
|
|
|
|
+
|
|
export MAVEN_OPTS="-Xmx4096m"
|
|
export MAVEN_OPTS="-Xmx4096m"
|
|
mvn -B install -f pom.ozone.xml -DskipTests
|
|
mvn -B install -f pom.ozone.xml -DskipTests
|
|
mvn -B -fn test -f pom.ozone.xml -pl :hadoop-ozone-integration-test,:hadoop-ozone-filesystem
|
|
mvn -B -fn test -f pom.ozone.xml -pl :hadoop-ozone-integration-test,:hadoop-ozone-filesystem
|
|
-module_failed_tests=$(find "." -name 'TEST*.xml'\
|
|
|
|
|
|
+module_failed_tests=$(find "." -name 'TEST*.xml' -print0 \
|
|
| xargs "grep" -l -E "<failure|<error"\
|
|
| xargs "grep" -l -E "<failure|<error"\
|
|
| awk -F/ '{sub("'"TEST-JUNIT_TEST_OUTPUT_DIR"'",""); sub(".xml",""); print $NF}')
|
|
| awk -F/ '{sub("'"TEST-JUNIT_TEST_OUTPUT_DIR"'",""); sub(".xml",""); print $NF}')
|
|
if [[ -n "${module_failed_tests}" ]] ; then
|
|
if [[ -n "${module_failed_tests}" ]] ; then
|
|
- exit -1
|
|
|
|
|
|
+ exit 1
|
|
fi
|
|
fi
|
|
exit 0
|
|
exit 0
|