diff --git a/Makefile b/Makefile index ce8af42..0f90d34 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ test-all: @bats -T $(shell find . -name test.bats| sort ) test-changed: - @bats -T $(shell git diff --name-status ${BASE_REF} | awk '{print $2}' | xargs dirname | uniq | grep -v -E '^(\.|lib)' | xargs -I% echo -n " %/test.bats" ) + @bats -T $(shell git diff --name-status ${BASE_REF} | awk '{ print $$2}' | xargs -I% dirname % | grep -v -E '(^\.|lib)' | xargs -I% echo "%/test.bats") update-tests: @find . -maxdepth 1 -type d -not -path '*/\.*' -not -path '.' -not -path './lib' -exec cp ./lib/test.bats.example {}/test.bats \;