AI 143102: Add build environment shortcut to runtest.py.

This change does not affect device code.
  BUG=1741172

Automated import of CL 143102
This commit is contained in:
Brett Chabot 2009-03-27 10:25:11 -07:00 committed by The Android Open Source Project
parent 436aefc2d0
commit 762748cfea
1 changed files with 11 additions and 0 deletions

View File

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