Skip to content

Commit 7e63dc8

Browse files
committed
---
yaml --- r: 73640 b: refs/heads/dist-snap c: 0521d54 h: refs/heads/master v: v3
1 parent 9e189c6 commit 7e63dc8

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
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: b50030718cf28f2a5a81857a26b57442734fe854
10-
refs/heads/dist-snap: fe1dc3280f63fe4cec441837ae20020cbe26dc61
10+
refs/heads/dist-snap: 0521d54ca1e194ba8564f4a000c50b7f708022ba
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/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)