Skip to content

Commit

Permalink
Test added files also
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Mar 8, 2023
1 parent e8f56b1 commit 95f08d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/test-modified.sh
@@ -1,7 +1,7 @@
# This script will run make xtest on any files in the repository that have not yet been committed
# use before 'git commit' to ensure your commit doesn't require correction.

export TEST_FILES=`git status --porcelain | grep ' M' | awk '{print $2}'`
export TEST_FILES=`git status --porcelain | egrep '^( M|A)' | awk '{print $2}'`

[ "$TEST_FILES" = "" ] && echo "nothing to test"
[ "$TEST_FILES" != "" ] && make xtest
[ "$TEST_FILES" != "" ] && echo $TEST_FILES && make xtest

0 comments on commit 95f08d0

Please sign in to comment.