File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed
branches/dist-snap/src/etc Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
9
refs/heads/incoming: b50030718cf28f2a5a81857a26b57442734fe854
10
- refs/heads/dist-snap: 0521d54ca1e194ba8564f4a000c50b7f708022ba
10
+ refs/heads/dist-snap: c28c495414d8d5bec83ca4c7e2781c1a7cc8d489
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
13
13
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change 1
1
#
2
2
# usage : adb_run_wrapper [test dir - where test executables exist] [test executable]
3
3
#
4
+
5
+ # Sometimes android shell produce exitcode "1 : Text File Busy"
6
+ # Retry after $WAIT seconds, expecting resource cleaned-up
7
+ WAIT=10
4
8
PATH=$1
5
9
if [ -d " $PATH " ]
6
10
then
10
14
if [ ! -z " $RUN " ]
11
15
then
12
16
shift
13
- while [ -f $PATH /lock ]
17
+
18
+ L_RET=1
19
+ L_COUNT=0
20
+ while [ $L_RET -eq 1 ]
14
21
do
15
- /system/bin/sleep 1
22
+ LD_LIBRARY_PATH=$PATH $PATH /$RUN $@ 1> $PATH /$RUN .stdout 2> $PATH /$RUN .stderr
23
+ L_RET=$?
24
+ if [ $L_COUNT -gt 0 ]
25
+ then
26
+ /system/bin/sleep $WAIT
27
+ /system/bin/sync
28
+ fi
29
+ L_COUNT=` expr $L_COUNT +1`
16
30
done
17
- /system/bin/touch $PATH /lock
18
- LD_LIBRARY_PATH=$PATH $PATH /$RUN $@ 1> $PATH /$RUN .stdout 2> $PATH /$RUN .stderr
19
- echo $? > $PATH /$RUN .exitcode
20
- /system/bin/rm $PATH /lock
21
- /system/bin/sync
31
+
32
+ echo $L_RET > $PATH /$RUN .exitcode
33
+
22
34
fi
23
35
fi
You can’t perform that action at this time.
0 commit comments