summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhangyanxian <zhangyanxianmail@163.com>2016-11-16 09:59:26 +0000
committerzhangyanxian <zhangyanxianmail@163.com>2016-11-16 11:42:40 +0000
commitf2f66c8adabd7916d4d2afabe7f2dcb048e8effb (patch)
treee6725a55d3bf2b8aa5cefe973b4ba9e28ee12e67
parentd2cbb01669a9c7d9e24bc7eb42181da14f1577f6 (diff)
Fix spelling mistakes in cover.sh
Notes
Notes (review): Code-Review+2: Tom Barron <tpb@dyncloud.net> Code-Review+2: Rodrigo Barbieri <rodrigo.barbieri2010@gmail.com> Workflow+1: Tom Barron <tpb@dyncloud.net> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 16 Nov 2016 12:57:32 +0000 Reviewed-on: https://review.openstack.org/398237 Project: openstack/manila Branch: refs/heads/master
-rwxr-xr-xtools/cover.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/cover.sh b/tools/cover.sh
index 69d46c6..389884c 100755
--- a/tools/cover.sh
+++ b/tools/cover.sh
@@ -23,9 +23,9 @@ show_diff () {
23 diff -U 0 $1 $2 | sed 1,2d 23 diff -U 0 $1 $2 | sed 1,2d
24} 24}
25 25
26# Stash uncommited changes, checkout master and save coverage report 26# Stash uncommitted changes, checkout master and save coverage report
27uncommited=$(git status --porcelain | grep -v "^??") 27uncommitted=$(git status --porcelain | grep -v "^??")
28[[ -n $uncommited ]] && git stash > /dev/null 28[[ -n $uncommitted ]] && git stash > /dev/null
29git checkout HEAD^ 29git checkout HEAD^
30 30
31baseline_report=$(mktemp -t manila_coverageXXXXXXX) 31baseline_report=$(mktemp -t manila_coverageXXXXXXX)
@@ -33,9 +33,9 @@ find . -type f -name "*.pyc" -delete && python setup.py testr --coverage --testr
33coverage report --ignore-errors > $baseline_report 33coverage report --ignore-errors > $baseline_report
34baseline_missing=$(awk 'END { print $3 }' $baseline_report) 34baseline_missing=$(awk 'END { print $3 }' $baseline_report)
35 35
36# Checkout back and unstash uncommited changes (if any) 36# Checkout back and unstash uncommitted changes (if any)
37git checkout - 37git checkout -
38[[ -n $uncommited ]] && git stash pop > /dev/null 38[[ -n $uncommitted ]] && git stash pop > /dev/null
39 39
40# Generate and save coverage report 40# Generate and save coverage report
41current_report=$(mktemp -t manila_coverageXXXXXXX) 41current_report=$(mktemp -t manila_coverageXXXXXXX)