diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index 61371dd94d6c..0c899b0435db 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -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); } // } diff --git a/src/etc/adb_run_wrapper.sh b/src/etc/adb_run_wrapper.sh index 7d5fdb1cdd17..516c6a9fca32 100755 --- a/src/etc/adb_run_wrapper.sh +++ b/src/etc/adb_run_wrapper.sh @@ -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