Skip to content

Commit

Permalink
Split off prebuild from tests
Browse files Browse the repository at this point in the history
ryardley committed Dec 31, 2024

Verified

This commit was signed with the committer’s verified signature.
ryardley гλ
1 parent e1de43d commit e6c7777
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/integration/fns.sh
Original file line number Diff line number Diff line change
@@ -169,6 +169,5 @@ metallica
trap 'cleanup $?' ERR INT TERM

$SCRIPT_DIR/lib/clean_folders.sh "$SCRIPT_DIR"
$SCRIPT_DIR/lib/prebuild.sh


9 changes: 9 additions & 0 deletions tests/integration/prebuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

#!/usr/bin/env bash

set -eu # Exit immediately if a command exits with a non-zero status

# This script deliberately does nothing as prebuild has been managed by the outer process
# See test.sh
#
echo "Prebuild finished"
4 changes: 4 additions & 0 deletions tests/integration/test.sh
Original file line number Diff line number Diff line change
@@ -4,6 +4,10 @@ set -eu # Exit immediately if a command exits with a non-zero status

THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [[ "$*" != *"--no-prebuild"* ]]; then
"$THIS_DIR/lib/prebuild.sh"
fi

if [ $# -eq 0 ]; then
"$THIS_DIR/persist.sh"
"$THIS_DIR/base.sh"

0 comments on commit e6c7777

Please sign in to comment.