summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorBrett Chabot <>2009-03-27 20:17:02 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-27 20:17:02 -0700
commite253d822dd45ce09aaf8daa92a90e0c9b01c8c32 (patch)
treea06578fe6c967ab434c344d7e696700c424c39ae /envsetup.sh
parent35354dc7542fc3efc643e69aa8bcc2bd8172408b (diff)
downloadbuild-e253d822dd45ce09aaf8daa92a90e0c9b01c8c32.zip
build-e253d822dd45ce09aaf8daa92a90e0c9b01c8c32.tar.gz
build-e253d822dd45ce09aaf8daa92a90e0c9b01c8c32.tar.bz2
AI 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/... Automated import of CL 143263
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>"