From d888cf99db491595d4bb82a8fb70d7f1fe5e85f3 Mon Sep 17 00:00:00 2001 From: Larry Knox Date: Tue, 13 Feb 2024 08:42:39 -0600 Subject: Don't add files and directories with names that begin with ., or that match *autom4te* to release tar & zip files. (#4009) Filter messages with 'ulimit -s' out of test output for runTest.cmake. --- bin/release | 2 +- config/cmake/runTest.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/release b/bin/release index 26a756c..5eb8b8c 100755 --- a/bin/release +++ b/bin/release @@ -466,7 +466,7 @@ done # Create the tar file test "$verbose" && echo " Running tar..." 1>&2 -(cd "$tmpdir" && exec tar -ch --exclude-vcs -f "$HDF5_VERS.tar" "./$HDF5_IN_VERS" || exit 1 ) +(cd "$tmpdir" && exec tar -ch --exclude-vcs --exclude=*autom4te* --exclude=.clang-format --exclude=.codespellrc --exclude=.devcontainer --exclude=.git* --exclude=.h5chkright.ini -f "$HDF5_VERS.tar" "./$HDF5_IN_VERS" || exit 1 ) # Compress #SHA256=$HDF5_VERS.sha256 diff --git a/config/cmake/runTest.cmake b/config/cmake/runTest.cmake index d21765a..7fb9d3c 100644 --- a/config/cmake/runTest.cmake +++ b/config/cmake/runTest.cmake @@ -137,6 +137,7 @@ file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) string (FIND TEST_STREAM "_pmi_alps" TEST_FIND_RESULT) if (TEST_FIND_RESULT GREATER -1) string (REGEX REPLACE "^.*_pmi_alps[^\n]+\n" "" TEST_STREAM "${TEST_STREAM}") + string (REGEX REPLACE "^.*ulimit -s.*\n" "" TEST_STREAM "${TEST_STREAM}") file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} ${TEST_STREAM}) endif () -- cgit v0.12