diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh
index ff3bab24e8..e0a946ec83 100755
--- a/tests/codec-regression.sh
+++ b/tests/codec-regression.sh
@@ -45,9 +45,6 @@ else
do_md5sum() { echo No md5sum program found; }
fi
-# create the data directory if it does not exist
-mkdir -p $datadir
-
FFMPEG_OPTS="-y -flags +bitexact -dct fastint -idct simple -sws_flags +accurate_rnd+bitexact"
do_ffmpeg()
diff --git a/tests/ffserver-regression.sh b/tests/ffserver-regression.sh
index a0a1ecf651..711e169006 100755
--- a/tests/ffserver-regression.sh
+++ b/tests/ffserver-regression.sh
@@ -1,8 +1,5 @@
#!/bin/sh
-# Make sure that the data directory exists
-mkdir -p tests/data
-
#perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "\nFile $wd/tests/data/$_\n\n\n" } @ARGV' tests/data/a* >> tests/data/ffserver.conf
#perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "\nFile $wd/tests/data/$_\n\n\n" } @ARGV' tests/data/a* >> tests/data/ffserver.conf