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:
parent
7df01a599a
commit
ee4604baf3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user