Skip to content

Commit

Permalink
tests: Don't check for git tree dirtiness outside of CI
Browse files Browse the repository at this point in the history
When running tests on code that has yet to be part of a commit, we don't really
want the tests to tell use we have a diff. We know.

Let's constraint that test to CI.
  • Loading branch information
dlespiau committed Sep 15, 2019
1 parent 8e30abc commit 8215771
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ echo
echo "==> Running jk tests"
go test -v ./...

echo
echo "==> Checking committed generated files are up to date"
git diff --exit-code

if [ -n "$CI" ]; then
echo
echo "==> Checking committed generated files are up to date"
git diff --exit-code
fi

0 comments on commit 8215771

Please sign in to comment.