Skip to content

Commit 871968c

Browse files
committed
Allow retaining TEMPD
1 parent e4a59f7 commit 871968c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

scripts/performance-tests-kontrol.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,16 @@ if [ ! -e "$TEMPD" ]; then
3030
exit 1
3131
fi
3232

33-
# Make sure the temp directory gets removed and kore-rpc-booster gets killed on script exit.
34-
trap "exit 1" HUP INT PIPE QUIT TERM
35-
trap 'rm -rf "$TEMPD" && killall kore-rpc-booster || echo "no zombie processes found"' EXIT
33+
clean_up () {
34+
if [ -z "$KEEP_TEMPD" ]; then
35+
rm -rf "$TEMPD"
36+
fi
37+
killall kore-rpc-booster || echo "no zombie processes found"
38+
}
39+
40+
# Make sure the temp directory gets removed (unless KEEP_TEMPD is set) and kore-rpc-booster gets killed on script exit.
41+
trap "exit 1" HUP INT PIPE QUIT TERM
42+
trap clean_up EXIT
3643

3744
cd $TEMPD
3845
git clone --depth 1 --branch $KONTROL_VERSION https://github.com/runtimeverification/kontrol.git
@@ -109,7 +116,6 @@ mkdir -p $SCRIPT_DIR/logs
109116
feature_shell "make test-integration TEST_ARGS='--foundry-root $FOUNDRY_DIR --maxfail=0 --numprocesses=$PYTEST_PARALLEL -vv $BUG_REPORT' | tee $SCRIPT_DIR/logs/kontrol-$KONTROL_VERSION-$FEATURE_BRANCH_NAME.log"
110117
killall kore-rpc-booster || echo "no zombie processes found"
111118

112-
# AccountParamsTest.testDealConcrete()
113119

114120
if [ -z "$BUG_REPORT" ]; then
115121
if [ ! -e "$SCRIPT_DIR/logs/kontrol-$KONTROL_VERSION-master-$MASTER_COMMIT_SHORT.log" ]; then

0 commit comments

Comments
 (0)