summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-11-16 12:57:32 +0000
committerGerrit Code Review <review@openstack.org>2016-11-16 12:57:32 +0000
commit341d5299de7b26fcbf473c33deeed4bb74b73723 (patch)
treefdd76489e885da17d393917cbf94663da0ce2e1e
parent781d7d9e3be5077e3af361f87b089ea99329cd18 (diff)
parentf2f66c8adabd7916d4d2afabe7f2dcb048e8effb (diff)
Merge "Fix spelling mistakes in cover.sh"
-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)