]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix tox -e fast8
authorEric Harney <eharney@redhat.com>
Tue, 5 Jan 2016 16:14:45 +0000 (11:14 -0500)
committerEric Harney <eharney@redhat.com>
Fri, 8 Jan 2016 16:05:44 +0000 (11:05 -0500)
This currently doesn't report failures.

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

Change-Id: I4983db5594fc2746eb28ec87a74d5d0ba27c9aaf

tools/fast8.sh

index c1792ae68bed3e9ee17cc4a5d00b638c4ca15328..2b3e22abda5d32a4211b97334c401db2c7f31d7b 100755 (executable)
@@ -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