Add more test code.
[yaffs2.git] / direct / tests / manage_nor_test.sh
index e1c94d5bc87f87fcf210dd0d0c24608be1298928..5e2fd99390a5d18d5ab3219a6f09519c1f37f76c 100755 (executable)
@@ -3,13 +3,12 @@
 dir_id=-none
 [ -z $1 ] || dir_id=$1
 
-RUNDIR=`pwd`/tmpnor$dir_id
+STARTDIR=`pwd`
+RUNDIR=`pwd`/tmp/nor-$dir_id
 mkdir $RUNDIR
-sudo mount -t tmpfs none $RUNDIR
-sudo chmod a+wr $RUNDIR
 cd $RUNDIR
-cp ../*sh .
-ln -s ../yaffs_test yaffs_test
+cp $STARTDIR/*sh .
+ln -s $STARTDIR/yaffs_test yaffs_test
 
 ./init_fw_update_test_nor.sh
 ./run_fw_update_test_nor.sh