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
This commit is contained in:
Jakob Unterwurzacher 2018-03-05 23:00:36 +01:00
parent 870779ab1d
commit 86e60f1be2
1 changed files with 2 additions and 2 deletions

View File

@ -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