etc: adb_run_wrapper argument change

This commit is contained in:
Young-il Choi 2013-05-30 09:36:53 +09:00
parent fe1dc3280f
commit 0521d54ca1
2 changed files with 22 additions and 15 deletions

View File

@ -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); }
// }

View File

@ -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