2 # usage : adb_run_wrapper [test dir - where test executables exist] [test executable]
5 # Sometimes android shell produce exitcode "1 : Text File Busy"
6 # Retry after $WAIT seconds, expecting resource cleaned-up
20 while [ $L_RET -eq 1 ]
22 LD_LIBRARY_PATH=$PATH $PATH/$RUN $@ 1>$PATH/$RUN.stdout 2>$PATH/$RUN.stderr
26 /system/bin/sleep $WAIT
29 L_COUNT=`expr $L_COUNT+1`
32 echo $L_RET > $PATH/$RUN.exitcode