This commit is contained in:
gobwas 2016-02-24 13:51:14 +03:00
parent 34494ea116
commit 72f082815c
1 changed files with 2 additions and 2 deletions

View File

@ -7,11 +7,11 @@ bench() {
echo "Already exists ${filename}"
else
backup=`git rev-parse --abbrev-ref HEAD`
git checkout $1 &>/dev/null
git checkout $1
echo -n "Creating ${filename}... "
go test ./... -run=NONE -bench=$2 > "${filename}" -benchmem
echo "OK"
git checkout ${backup} &>/dev/null
git checkout ${backup}
fi
}