Browse Source

Fix bug

content-update
4 years ago committed by xpetit
parent
commit
44ad46d6e6
  1. 13
      go/tests/entrypoint.sh

13
go/tests/entrypoint.sh

@ -27,13 +27,14 @@ if test "$s"; then
fi
# Check restrictions
if test "$ALLOWED_FUNCTIONS"; then
for file in $EXPECTED_FILES; do
# shellcheck disable=SC2086
rc "$file" $ALLOWED_FUNCTIONS
done
if test "$ALLOWED_FUNCTIONS" && test "$EXPECTED_FILES"; then
IFS=' '
first_file=$(echo "$EXPECTED_FILES" | cut -d' ' -f1)
# shellcheck disable=SC2086
rc "$first_file" $ALLOWED_FUNCTIONS
fi
IFS='
'
# Compile and run test
cd
GOPATH=$HOME:$GOPATH

Loading…
Cancel
Save