diff options
author | Brett Chabot <> | 2009-03-27 19:50:26 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-27 19:50:26 -0700 |
commit | b18e16d359518a13d436a1d2c314b8580e964612 (patch) | |
tree | d1df29dce2e34713c46827480d50c7fe04513a3f | |
parent | c87cb75a66135759330236e6b4a1a5dad55d849c (diff) | |
download | build-b18e16d359518a13d436a1d2c314b8580e964612.zip build-b18e16d359518a13d436a1d2c314b8580e964612.tar.gz build-b18e16d359518a13d436a1d2c314b8580e964612.tar.bz2 |
AI 143392: am: CL 143263 am: CL 143102 Add build environment shortcut to runtest.py.
This change does not affect device code.
Original author: brettchabot
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...
Automated import of CL 143392
-rw-r--r-- | envsetup.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/envsetup.sh b/envsetup.sh index 016c399..bccf7c9 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -974,6 +974,17 @@ function runtest() (cd "$T" && development/tools/runtest $@) } +# simple shortcut to the runtest.py command +function runtest.py() +{ + T=$(gettop) + if [ ! "$T" ]; then + echo "Couldn't locate the top of the tree. Try setting TOP." >&2 + return + fi + (cd "$T" && development/testrunner/runtest.py $@) +} + function godir () { if [[ -z "$1" ]]; then echo "Usage: godir <regex>" |