Fix some typos in cover.sh
TrivialFix Change-Id: I9f03f797d99cfb6d77ea0d923568b5db8b3aa9f7
This commit is contained in:
@@ -25,9 +25,9 @@ show_diff () {
|
|||||||
|
|
||||||
#
|
#
|
||||||
|
|
||||||
# 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)
|
||||||
@@ -35,9 +35,9 @@ find . -type f -name "*.pyc" -delete && ./run_tests.sh -V --coverage --no-pep8 $
|
|||||||
coverage report > $baseline_report
|
coverage report > $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)
|
||||||
|
Reference in New Issue
Block a user