Fix spelling mistakes in cover.sh

TrivalFix

Change-Id: Iedc1fc108d090e11d8d942379aa8c32d212d16e1
This commit is contained in:
zhangyanxian 2016-11-16 09:59:26 +00:00
parent d2cbb01669
commit f2f66c8ada
1 changed files with 5 additions and 5 deletions

View File

@ -23,9 +23,9 @@ show_diff () {
diff -U 0 $1 $2 | sed 1,2d diff -U 0 $1 $2 | sed 1,2d
} }
# Stash uncommited changes, checkout master and save coverage report # Stash uncommitted changes, checkout master and save coverage report
uncommited=$(git status --porcelain | grep -v "^??") uncommitted=$(git status --porcelain | grep -v "^??")
[[ -n $uncommited ]] && git stash > /dev/null [[ -n $uncommitted ]] && git stash > /dev/null
git checkout HEAD^ git checkout HEAD^
baseline_report=$(mktemp -t manila_coverageXXXXXXX) baseline_report=$(mktemp -t manila_coverageXXXXXXX)
@ -33,9 +33,9 @@ find . -type f -name "*.pyc" -delete && python setup.py testr --coverage --testr
coverage report --ignore-errors > $baseline_report coverage report --ignore-errors > $baseline_report
baseline_missing=$(awk 'END { print $3 }' $baseline_report) baseline_missing=$(awk 'END { print $3 }' $baseline_report)
# Checkout back and unstash uncommited changes (if any) # Checkout back and unstash uncommitted changes (if any)
git checkout - git checkout -
[[ -n $uncommited ]] && git stash pop > /dev/null [[ -n $uncommitted ]] && git stash pop > /dev/null
# Generate and save coverage report # Generate and save coverage report
current_report=$(mktemp -t manila_coverageXXXXXXX) current_report=$(mktemp -t manila_coverageXXXXXXX)