Skip to content

Commit

Permalink
bail if we can't copy the file
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Jun 26, 2024
1 parent 0000fe4 commit 9c66052
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/tests/1-test-update-php.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ custom_setup() {
local version=$1
# Print debugging information
echo "BATS_TEST_DIRNAME: $BATS_TEST_DIRNAME"
echo "Current directory before cd: $(pwd)"
echo "Current directory: $(pwd)"

# Check if the .github directory exists
if [ ! -d ".github" ]; then
Expand All @@ -19,6 +19,12 @@ custom_setup() {

# Copy the fixture file to pantheon.yml before each test
cp ".github/fixtures/pantheon-${version}.yml" pantheon.yml

if [ ! -f "pantheon.yml" ]; then
echo "Failed to copy the fixture file to $(pwd)/pantheon.yml"
else
cat pantheon.yml
fi
}

teardown() {
Expand Down

0 comments on commit 9c66052

Please sign in to comment.