From d2ed9d70845b839bbfb1a5fd5391dd2f605894a0 Mon Sep 17 00:00:00 2001 From: zhangyanxian Date: Fri, 16 Dec 2016 02:30:36 +0000 Subject: [PATCH] Fix typos in cover.sh TrivialFix Change-Id: I0c4985a799c551ab54f4730c51a54ac53be4545c --- tools/cover.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/cover.sh b/tools/cover.sh index 5c8d170..769c6c9 100755 --- a/tools/cover.sh +++ b/tools/cover.sh @@ -22,9 +22,9 @@ show_diff () { diff -U 0 $1 $2 | sed 1,2d } -# Stash uncommited changes, checkout master and save coverage report -uncommited=$(git status --porcelain | grep -v "^??") -[[ -n $uncommited ]] && git stash > /dev/null +# Stash uncommitted changes, checkout master and save coverage report +uncommitted=$(git status --porcelain | grep -v "^??") +[[ -n $uncommitted ]] && git stash > /dev/null git checkout HEAD^ baseline_report=$(mktemp -t murano_coverageXXXXXXX) @@ -32,9 +32,9 @@ find . -type f -name "*.pyc" -delete && python setup.py testr --coverage --testr coverage report > $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 - -[[ -n $uncommited ]] && git stash pop > /dev/null +[[ -n $uncommitted ]] && git stash pop > /dev/null # Generate and save coverage report current_report=$(mktemp -t murano_coverageXXXXXXX)