This commit is contained in:
Dennis Heimbigner 2023-04-26 13:51:17 -06:00
parent 61f42a4404
commit f584296472

View File

@ -6,8 +6,6 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi
set -e
set -x
VG="valgrind --leak-check=full"
URL="https://s3.us-east-1.amazonaws.com/unidata-zarr-test-data"
isolate "testdir_uts3sdk"
@ -18,10 +16,11 @@ S3ISOPATH="/netcdf-c"
S3ISOPATH="${S3ISOPATH}/$S3ISODIR"
test_cleanup() {
echo ">>> error exit"
$VG ${execdir}/../nczarr_test/s3util -u "${URL}" -k "${S3ISOPATH}" clear
${execdir}/../nczarr_test/s3util -u "${URL}" -k "${S3ISOPATH}" clear
}
if ! test "x$GITHUB_ACTIONS" ; then
trap test_cleanup EXIT
fi
THISDIR=`pwd`
cd $ISOPATH
@ -36,6 +35,9 @@ ${CMD} ${execdir}/test_s3sdk -u "${URL}" -k "${S3ISOPATH}/test_s3sdk.txt" delete
if test "x$FEATURE_LARGE_TESTS" = xyes ; then
${CMD} ${execdir}/test_s3sdk -u "${URL}" -k "${S3ISOPATH}" longlist
fi
if test "x$GITHUB_ACTIONS" ; then
# Cleanup on exit
echo ">>> clean exit"
$VG ${execdir}/../nczarr_test/s3util -u "${URL}" -k "${S3ISOPATH}" clear
${execdir}/../nczarr_test/s3util -u "${URL}" -k "${S3ISOPATH}" clear
fi