diff --git a/test.sh b/test.sh
index 202abef2d..a8fa6cd98 100755
--- a/test.sh
+++ b/test.sh
@@ -35,8 +35,10 @@ else
 fi
 
 if [ "$PLATFORM" = "Windows" ]; then
+  mkdir -p "$ProgramData/Lidarr"
   WHERE="$WHERE && cat != LINUX"
 elif [ "$PLATFORM" = "Linux" ] || [ "$PLATFORM" = "Mac" ] ; then
+  mkdir -p "~/.config/Lidarr"
   WHERE="$WHERE && cat != WINDOWS"
   NUNIT_COMMAND="mono --debug --runtime=v4.0 $NUNIT"
 else