3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-08-18 19:02:21 +00:00
sby/tests/intertask/longrunning.sh
Krystine Sherwin 7c5c96f5ca
Don't use -f for intertask tests...
... if we expect the database to still contain previous runs.
Use `rm -rf` to clear directories by hand instead.
2025-07-09 10:40:49 +12:00

14 lines
456 B
Bash

#!/bin/bash
set -e
if [[ $TASK == bmc ]]; then
python3 $SBY_MAIN --prefix $WORKDIR -f $SBY_FILE prove bmc
else
rm -rf ${WORKDIR} ${WORKDIR}_*
python3 $SBY_MAIN --prefix $WORKDIR $SBY_FILE bmc --statuscancels & bmc_pid="$!"
# make sure we don't leave the background task running
trap 'kill "$bmc_pid" 2>/dev/null || true' EXIT
python3 $SBY_MAIN --prefix $WORKDIR $SBY_FILE prove
sleep 10
test -e ${WORKDIR}_bmc/CANCELLED
fi