From 86e60f1be20cb2db53e5e787790e5397a2a86495 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 5 Mar 2018 23:00:36 +0100 Subject: [PATCH] test.bash: Don't build with openssl if we were passed "-tags without_openssl" test-without-openssl.bash now fails, as it should: gocryptfs has been compiled without openssl support but you are still trying to use openssl mount failed: exit status 18 FAIL github.com/rfjakob/gocryptfs/tests/matrix 1.943s --- test.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.bash b/test.bash index 03eb218..182cdc3 100755 --- a/test.bash +++ b/test.bash @@ -27,8 +27,8 @@ for i in $(mount | grep $TESTDIR | cut -f3 -d" "); do done ./build-without-openssl.bash -# Building with openssl is difficult on OSX, so only do it on Linux. -if [[ $OSTYPE == linux* ]] ; then +# Don't build with openssl if we were passed "-tags without_openssl" +if [[ "$@" != *without_openssl* ]] ; then ./build.bash fi