diff --git a/lustre/tests/acceptance-small.sh b/lustre/tests/acceptance-small.sh
index 588efefd1b42e2d61774d1a04afd718dd2076013..72ca68d030767725aaa578e8eac0031d64967495 100755
--- a/lustre/tests/acceptance-small.sh
+++ b/lustre/tests/acceptance-small.sh
@@ -47,11 +47,11 @@ LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
 . $LUSTRE/tests/test-framework.sh
 init_test_env $@
 
-export SANITY_GSS="no"
 if $GSS; then
-    export SANITY_GSS="yes"
     # liblustre doesn't support GSS
     export LIBLUSTRE=no
+else
+    export SANITY_GSS="no"
 fi
 
 SETUP=${SETUP:-setupall}