Skip to content

Commit

Permalink
chore: Add missing pushd to test script
Browse files Browse the repository at this point in the history
  • Loading branch information
bartventer committed Jun 20, 2024
1 parent 9a1d1fb commit dc70970
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ for dir in "${gomoddirs[@]}"; do
printf '\n\n%s\n' "$(printf '=%.0s' {1..80})"
printf "🐛 Testing module at path: %s\n" "$dir"
printf '%s\n' "$(printf '=%.0s' {1..80})"
set -x
if [[ "$(basename "$dir")" == "." ]]; then
coverfile="$COVERDIR/rover.cover"
else
coverfile="$COVERDIR/$(basename "$dir").cover"
fi
set +x
pushd "$dir" >/dev/null
go test -v -race -outputdir="$COVERDIR" -coverprofile="$coverfile" -timeout 15m ./...
popd >/dev/null
done
Expand Down

0 comments on commit dc70970

Please sign in to comment.