Skip to content

Commit

Permalink
Merge pull request #25 from weaveworks/fix-brokenness
Browse files Browse the repository at this point in the history
Test directories need ./ prefixes, obviously.
  • Loading branch information
jml authored Jul 14, 2016
2 parents 5b9b314 + bfb1747 commit ca6ebfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ fi

fail=0

TESTDIRS=( $(git ls-files -- '*_test.go' | grep -vE '^(vendor|prog|experimental)/' | xargs -n1 dirname | sort -u) )
# NB: Relies on paths being prefixed with './'.
TESTDIRS=( $(git ls-files -- '*_test.go' | grep -vE '^(vendor|prog|experimental)/' | xargs -n1 dirname | sort -u | sed -e 's|^|./|') )

# If running on circle, use the scheduler to work out what tests to run on what shard
if [ -n "$CIRCLECI" ] && [ -z "$NO_SCHEDULER" ] && [ -x "$DIR/sched" ]; then
Expand Down

0 comments on commit ca6ebfb

Please sign in to comment.