Merge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
authorCharles Manning <cdhmanning@gmail.com>
Mon, 29 Nov 2010 03:41:14 +0000 (16:41 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Mon, 29 Nov 2010 03:41:14 +0000 (16:41 +1300)
direct/tests/launch_tests.sh

index b1119a6..779fa48 100755 (executable)
@@ -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
+