[scalapack] 01/01: remove bashism in OS test

Drew Parsons dparsons at moszumanska.debian.org
Mon Aug 7 08:25:56 UTC 2017


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

dparsons pushed a commit to branch experimental
in repository scalapack.

commit 9e68e6c36436f63ba493a4f86bee0fa38457c894
Author: Drew Parsons <dparsons at debian.org>
Date:   Mon Aug 7 16:24:34 2017 +0800

    remove bashism in OS test
    
    posix uses [ ] not [[ ]]; and make (debian/rules) uses posix sh not bash
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index efd354c..513b886 100755
--- a/debian/rules
+++ b/debian/rules
@@ -74,7 +74,7 @@ override_dh_auto_test:
 	# mpich has been found to Fail some tests but openmpi should not, so only check the openmpi test logs.
 	# openmpi may Timeout on slower arches, so only register actual Fails, assigning them return value 2
 	# Test only on linux, since openmpi on other OS (kfreebsd, hurd) does not support fakeroot
-	if [[ "$$DEB_BUILD_ARCH_OS" = "linux" ]] && $$( grep -q Failed build-openmpi/dh_auto_test.log ); then \
+	if [ "$$DEB_BUILD_ARCH_OS" = "linux" ] && $$( grep -q Failed build-openmpi/dh_auto_test.log ); then \
 	  echo "OpenMPI tests failed:"; \
 	  grep Failed build-openmpi/dh_auto_test.log; \
 	  return 2; \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/scalapack.git



More information about the debian-science-commits mailing list