[X2Go-Commits] [x2go-keyring] 08/15: runtests: use spaces instead of tabs.

git-admin at x2go.org git-admin at x2go.org
Sun Sep 18 10:12:23 CEST 2016


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2go-keyring.

commit b7cfdf2b6c0e777ff3dfec5d643de12de25af4e8
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sun Sep 18 04:48:31 2016 +0200

    runtests: use spaces instead of tabs.
---
 debian/changelog |    1 +
 runtests         |   24 ++++++++++++------------
 2 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d36ee97..80296b0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ x2go-keyring (2014.07.09) UNRELEASED; urgency=medium
   * t/keyids-complete.t: use the last directory in the stack instead of the
     top-level directory.
   * runtests: use more quotes and curly braces.
+  * runtests: use spaces instead of tabs.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Wed, 09 Jul 2014 20:10:47 +0200
 
diff --git a/runtests b/runtests
index 75b96ed..e541db7 100755
--- a/runtests
+++ b/runtests
@@ -5,10 +5,10 @@ fail="0"
 total="0"
 
 for keyring in "x2go-maintainers-gpg" "x2go-keyring-gpg"; do
-	if [ ! -e "output/keyrings/${keyring}" ]; then
-		echo "** ${keyring} does not exist, cannot run test suite" >&2
-		exit "1"
-	fi
+  if [ ! -e "output/keyrings/${keyring}" ]; then
+    echo "** ${keyring} does not exist, cannot run test suite" >&2
+    exit "1"
+  fi
 done
 
 export GNUPGHOME=`pwd`/gpghomedir
@@ -16,18 +16,18 @@ mkdir "${GNUPGHOME}"
 chmod 700 "${GNUPGHOME}"
 
 for t in t/*.t; do
-	total=`expr $total + 1`
-	if ! "${t}"; then
-		echo "test ${t} failed" >&2
-		fail=`expr "${fail}" + 1`
-	fi
+  total=`expr $total + 1`
+  if ! "${t}"; then
+    echo "test ${t} failed" >&2
+    fail=`expr "${fail}" + 1`
+  fi
 done
 
 rm -r "${GNUPGHOME}"
 
 if [ "${fail}" -gt 0 ]; then
-	echo "** failed ${fail}/${total} tests" >&2
-	exit "1"
+  echo "** failed ${fail}/${total} tests" >&2
+  exit "1"
 else
-	echo "** all tests succeeded"
+  echo "** all tests succeeded"
 fi

--
Alioth's /srv/git/code.x2go.org/x2go-keyring.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2go-keyring.git


More information about the x2go-commits mailing list