aboutsummaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
Diffstat (limited to 'test.bash')
-rwxr-xr-xtest.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.bash b/test.bash
index 7e56374..d5da874 100755
--- a/test.bash
+++ b/test.bash
@@ -54,8 +54,8 @@ unmount_leftovers || true
echo "$MYNAME: build-without-openssl.bash failed"
exit 1
}
-# Don't build with openssl if we were passed "-tags without_openssl"
-if [[ "$*" != *without_openssl* ]] ; then
+# Only build with openssl if cgo is enabled
+if [[ $(go env CGO_ENABLED) -eq 1 ]] ; then
./build.bash
fi