Stop looping on error waiting for android test results
These seem to be causing iloops on the bots. Let's rather see the errors.
This commit is contained in:
parent
a06ce0c91f
commit
6784179352
@ -2,9 +2,6 @@
|
||||
# usage : adb_run_wrapper [test dir - where test executables exist] [test executable]
|
||||
#
|
||||
|
||||
# Sometimes android shell produce exitcode "1 : Text File Busy"
|
||||
# Retry after $WAIT seconds, expecting resource cleaned-up
|
||||
WAIT=10
|
||||
TEST_PATH=$1
|
||||
BIN_PATH=/system/bin
|
||||
if [ -d "$TEST_PATH" ]
|
||||
@ -16,20 +13,9 @@ then
|
||||
then
|
||||
shift
|
||||
|
||||
L_RET=1
|
||||
L_COUNT=0
|
||||
cd $TEST_PATH
|
||||
while [ $L_RET -eq 1 ]
|
||||
do
|
||||
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
|
||||
L_RET=$?
|
||||
if [ $L_COUNT -gt 0 ]
|
||||
then
|
||||
/system/bin/sleep $WAIT
|
||||
/system/bin/sync
|
||||
fi
|
||||
L_COUNT=$((L_COUNT+1))
|
||||
done
|
||||
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
|
||||
L_RET=$?
|
||||
|
||||
echo $L_RET > $TEST_PATH/$RUN.exitcode
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user