From: Charles Manning Date: Mon, 29 Nov 2010 03:39:17 +0000 (+1300) Subject: yaffs testing: Don't want ramdisk created if it is already there X-Git-Tag: linux-mainline-patchset-4~27 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=282765e660138cfff618497718434a1948cf56f6 yaffs testing: Don't want ramdisk created if it is already there Check if the ramdisk exists before creating it. Signed-off-by: Charles Manning --- diff --git a/direct/tests/launch_tests.sh b/direct/tests/launch_tests.sh index b1119a6..779fa48 100755 --- a/direct/tests/launch_tests.sh +++ b/direct/tests/launch_tests.sh @@ -10,8 +10,12 @@ iterations=100000 LAUNCHDIR=`pwd` RUNDIR=`pwd`/tmp mkdir $RUNDIR + +if [ -z "$(mount | grep $RUNDIR)" ]; then sudo mount -t tmpfs -osize=2G none $RUNDIR sudo chmod a+wr $RUNDIR +fi +