Skip to content

Commit d3f0b5b

Browse files
committed
---
yaml --- r: 62916 b: refs/heads/snap-stage3 c: 0521d54 h: refs/heads/master v: v3
1 parent 6965a34 commit d3f0b5b

File tree

3 files changed

+23
-16
lines changed

3 files changed

+23
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: fe1dc3280f63fe4cec441837ae20020cbe26dc61
4+
refs/heads/snap-stage3: 0521d54ca1e194ba8564f4a000c50b7f708022ba
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/compiletest/runtest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
768768

769769
runargs.push(~"shell");
770770
runargs.push(fmt!("%s/adb_run_wrapper.sh", config.adb_test_dir));
771+
runargs.push(fmt!("%s", config.adb_test_dir));
771772
runargs.push(fmt!("%s", prog_short));
772773

773774
for args.args.each |tv| {
@@ -795,7 +796,7 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
795796
_ => 0,
796797
}
797798
}
798-
maxtry = maxtry - 1;
799+
// maxtry = maxtry - 1;
799800
// unsafe { libc::sleep(1); }
800801
// }
801802

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1-
2-
PATH=$(echo $0 | sed 's#/[^/]*$##')
3-
RUN=$1
4-
5-
if [ ! -z "$RUN" ]
1+
#
2+
# usage : adb_run_wrapper [test dir - where test executables exist] [test executable]
3+
#
4+
PATH=$1
5+
if [ -d "$PATH" ]
66
then
77
shift
8-
while [ -f $PATH/lock ]
9-
do
10-
sleep 1
11-
done
12-
touch $PATH/lock
13-
LD_LIBRARY_PATH=$PATH $PATH/$RUN $@ 1>$PATH/$RUN.stdout 2>$PATH/$RUN.stderr
14-
echo $? > $PATH/$RUN.exitcode
15-
/system/bin/rm $PATH/lock
16-
fi
8+
RUN=$1
179

10+
if [ ! -z "$RUN" ]
11+
then
12+
shift
13+
while [ -f $PATH/lock ]
14+
do
15+
/system/bin/sleep 1
16+
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
22+
fi
23+
fi

0 commit comments

Comments
 (0)