From ae70278a9f2f69e9c8902645a223aee73aa6b241 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 1 Sep 2023 17:19:48 +0200 Subject: [PATCH] Add --keep-tmp flag to test script --- tests/entrypoint.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/entrypoint.sh b/tests/entrypoint.sh index e196afe..c5a007e 100644 --- a/tests/entrypoint.sh +++ b/tests/entrypoint.sh @@ -4,19 +4,24 @@ REGEXS=() while [[ $# -gt 0 ]]; do case $1 in - -v|--verbose) - VERBOSE=1 - shift - ;; -h|--help) cat < /dev/null root=$(pwd) TMPDIR="$(mktemp --tmpdir -d isle-tests.XXXXXX)" -trap 'rm -rf $TMPDIR' EXIT +if [ -z "$KEEP_TMP" ]; then trap 'rm -rf $TMPDIR' EXIT; fi export TMPDIR echo "tmp dir is $TMPDIR"