projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53c341c
)
yaffs testing: Don't want ramdisk created if it is already there
author
Charles Manning
<cdhmanning@gmail.com>
Mon, 29 Nov 2010 03:39:17 +0000
(16:39 +1300)
committer
Charles Manning
<cdhmanning@gmail.com>
Mon, 29 Nov 2010 03:39:17 +0000
(16:39 +1300)
Check if the ramdisk exists before creating it.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/tests/launch_tests.sh
patch
|
blob
|
history
diff --git
a/direct/tests/launch_tests.sh
b/direct/tests/launch_tests.sh
index b1119a6b0342335fa8e68ec9190ab72c04e43542..779fa48c5301406c162355e8460be59888d21003 100755
(executable)
--- 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
+