etc: adb_run_wrapper argument change
This commit is contained in:
parent
fe1dc3280f
commit
0521d54ca1
|
@ -768,6 +768,7 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
|
|||
|
||||
runargs.push(~"shell");
|
||||
runargs.push(fmt!("%s/adb_run_wrapper.sh", config.adb_test_dir));
|
||||
runargs.push(fmt!("%s", config.adb_test_dir));
|
||||
runargs.push(fmt!("%s", prog_short));
|
||||
|
||||
for args.args.each |tv| {
|
||||
|
@ -795,7 +796,7 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
|
|||
_ => 0,
|
||||
}
|
||||
}
|
||||
maxtry = maxtry - 1;
|
||||
// maxtry = maxtry - 1;
|
||||
// unsafe { libc::sleep(1); }
|
||||
// }
|
||||
|
||||
|
|
|
@ -1,17 +1,23 @@
|
|||
|
||||
PATH=$(echo $0 | sed 's#/[^/]*$##')
|
||||
RUN=$1
|
||||
|
||||
if [ ! -z "$RUN" ]
|
||||
#
|
||||
# usage : adb_run_wrapper [test dir - where test executables exist] [test executable]
|
||||
#
|
||||
PATH=$1
|
||||
if [ -d "$PATH" ]
|
||||
then
|
||||
shift
|
||||
while [ -f $PATH/lock ]
|
||||
do
|
||||
sleep 1
|
||||
done
|
||||
touch $PATH/lock
|
||||
LD_LIBRARY_PATH=$PATH $PATH/$RUN $@ 1>$PATH/$RUN.stdout 2>$PATH/$RUN.stderr
|
||||
echo $? > $PATH/$RUN.exitcode
|
||||
/system/bin/rm $PATH/lock
|
||||
fi
|
||||
RUN=$1
|
||||
|
||||
if [ ! -z "$RUN" ]
|
||||
then
|
||||
shift
|
||||
while [ -f $PATH/lock ]
|
||||
do
|
||||
/system/bin/sleep 1
|
||||
done
|
||||
/system/bin/touch $PATH/lock
|
||||
LD_LIBRARY_PATH=$PATH $PATH/$RUN $@ 1>$PATH/$RUN.stdout 2>$PATH/$RUN.stderr
|
||||
echo $? > $PATH/$RUN.exitcode
|
||||
/system/bin/rm $PATH/lock
|
||||
/system/bin/sync
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue