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
10 if [ -d "$TEST_PATH" ]
22 while [ $L_RET -eq 1 ]
24 TEST_EXEC_ENV=22 LD_LIBRARY_PATH=$TEST_PATH PATH=$BIN_PATH:$TEST_PATH $TEST_PATH/$RUN $@ 1>$TEST_PATH/$RUN.stdout 2>$TEST_PATH/$RUN.stderr
28 /system/bin/sleep $WAIT
31 L_COUNT=$((L_COUNT+1))
34 echo $L_RET > $TEST_PATH/$RUN.exitcode