Skip to content

Instantly share code, notes, and snippets.

@akantsevoi
Created April 13, 2020 19:36
Show Gist options
  • Save akantsevoi/d904143cfc6cbc43f4dc3880fa12ac49 to your computer and use it in GitHub Desktop.
Save akantsevoi/d904143cfc6cbc43f4dc3880fa12ac49 to your computer and use it in GitHub Desktop.
#!/bin/sh
RESULT=$(CGO_ENABLED=0 go test ./cmd/integrationtests -count=1 2> /dev/null)
if [ $? -ne 0 ]; then
echo "Test errors: $RESULT" >&2
exit 1
else
echo "Test success: $RESULT"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment