summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorBrett Chabot <>2009-03-27 19:50:26 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-27 19:50:26 -0700
commitb18e16d359518a13d436a1d2c314b8580e964612 (patch)
treed1df29dce2e34713c46827480d50c7fe04513a3f /envsetup.sh
parentc87cb75a66135759330236e6b4a1a5dad55d849c (diff)
downloadbuild-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
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh11
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>"