Skip to content

Commit

Permalink
test: do build setup in build_challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
miallo committed Jan 15, 2024
1 parent 55d5e4b commit 6d51a95
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ parse_opts "$@"
build_challenge() {
echo "Building challenge..."
./build.sh --force
cd "$destination"
reproducibility_setup
}
build_challenge
cd "$destination"
reproducibility_setup

check_redeem_without_local_code_execution() {
while read -r nuggit; do
Expand All @@ -38,8 +38,6 @@ check_redeem_without_local_code_execution
cd ..
build_challenge
echo "Running tests..."
cd "$destination"
reproducibility_setup

redeem_nuggit() {
expect "git redeem-nuggit '$1'" to contain Success
Expand Down

0 comments on commit 6d51a95

Please sign in to comment.