Fix tox -e fast8

This currently doesn't report failures.

Also restrict files tested to HEAD~1..HEAD
instead of HEAD~2..HEAD.

Change-Id: I4983db5594fc2746eb28ec87a74d5d0ba27c9aaf
This commit is contained in:
Eric Harney 2016-01-05 11:14:45 -05:00
parent 7df01a599a
commit ee4604baf3
1 changed files with 2 additions and 2 deletions

View File

@ -1,13 +1,13 @@
#!/bin/bash
cd $(dirname "$0")/..
CHANGED=$(git diff --name-only HEAD~2 | tr '\n' ' ')
CHANGED=$(git diff --name-only HEAD~1 | tr '\n' ' ')
# Skip files that don't exist
# (have been git rm'd)
CHECK=""
for FILE in $CHANGED; do
if [ -f "$f" ]; then
if [ -f "$FILE" ]; then
CHECK="$CHECK $FILE"
fi
done