diff --git a/bin/test.sh b/bin/test.sh
index a08a3d356c3c02e3929a6f76737e70d60628ee07..1b8254771f14a9ad4b570c171df3f3b4a73a5e23 100755
--- a/bin/test.sh
+++ b/bin/test.sh
@@ -127,15 +127,15 @@ function Cmd
 function SetEnv
 {
     if [ "$FRAMAC_WP_CACHE" = "" ]; then
-        FRAMAC_WP_CACHE=offline
+        export FRAMAC_WP_CACHE=offline
         Echo "Set FRAMAC_WP_CACHE=$FRAMAC_WP_CACHE"
     fi
 
     if [ "$FRAMAC_WP_QUALIF" != "" ]; then
-        FRAMAC_WP_CACHEDIR="$FRAMAC_WP_QUALIF"
+        export FRAMAC_WP_CACHEDIR="$FRAMAC_WP_QUALIF"
         Echo "Set FRAMAC_WP_CACHEDIR=$FRAMAC_WP_CACHEDIR"
     elif [ "$FRAMAC_WP_CACHEDIR" = "" ]; then
-        FRAMAC_WP_CACHEDIR="$CACHEDIR"
+        export FRAMAC_WP_CACHEDIR="$CACHEDIR"
         Echo "Set FRAMAC_WP_CACHEDIR=$FRAMAC_WP_CACHEDIR"
     fi