Skip to content

Commit

Permalink
Make release-test script more fail-safe
Browse files Browse the repository at this point in the history
  • Loading branch information
SWilson4 committed Jan 4, 2024
1 parent eb80076 commit 605f083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ fi
if [ -d oqs-template ]; then
# just a temp setup
git checkout -b reltest
trap "git reset --hard && git checkout main && git branch -D reltest" EXIT
# Activate all algorithms
sed -i "s/enable\: false/enable\: true/g" oqs-template/generate.yml
python3 oqs-template/generate.py
Expand All @@ -32,7 +33,6 @@ if [ -d oqs-template ]; then
else
echo "For full TLS PQ SIG/KEM matrix test, build (latest) openssl locally."
fi
git reset --hard && git checkout main && git branch -D reltest
else
echo "$0 must be run in main oqs-provider folder. Exiting."
fi
Expand Down

0 comments on commit 605f083

Please sign in to comment.