[Pkg-octave-commit] [octave-pkg-dev] 01/01: Minor stylistic improvements.
Sébastien Villemot
sebastien at debian.org
Mon Sep 4 17:27:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastien pushed a commit to branch master
in repository octave-pkg-dev.
commit e17c80c5287e797e6c4ece705624935bc08a7cae
Author: Sébastien Villemot <sebastien at debian.org>
Date: Mon Sep 4 19:27:18 2017 +0200
Minor stylistic improvements.
Gbp-Dch: Ignore
---
check-pkg | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/check-pkg b/check-pkg
index bf0401b..f953458 100755
--- a/check-pkg
+++ b/check-pkg
@@ -2,8 +2,8 @@
# Set the octave executable and the octave options, when the
# corresponding variables are absent from the environment.
-[ -z "$octave" ] && octave=octave-cli
-[ -z "$octave_options" ] && octave_options="--no-history --silent --no-init-file --no-window-system"
+: ${octave:=octave-cli}
+: ${octave_options:="--no-history --silent --no-init-file --no-window-system"}
[ -e PKG_ADD ] && mv PKG_ADD PKG_ADD.bak
@@ -103,13 +103,13 @@ npass=0
nxfail=0
nskip=0
while read f1 f2 f3 f4 f5 ; do
- ntest=$(( $ntest + $f2 ))
- npass=$(( $npass + $f3 ))
- nxfail=$(( $nxfail + $f4 ))
- nskip=$(( $nskip + $f5 ))
+ ntest=$((ntest + f2))
+ npass=$((npass + f3))
+ nxfail=$((nxfail + f4))
+ nskip=$((nskip + f5))
done < $tmp_results
rm -f $tmp_results
echo "Summary: $ntest tests, $npass passed, $nxfail known failures, $nskip skipped"
-if [ "$(( $ntest > $npass + $nxfail + $nskip ))" = 1 ] ; then
+if [ "$ntest" -gt $((npass + nxfail + nskip)) ] ; then
exit 1
fi
--
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-pkg-dev.git
More information about the Pkg-octave-commit
mailing list