From 762748cfea8725793b609a46e89a465534dc94d0 Mon Sep 17 00:00:00 2001 From: Brett Chabot <> Date: Fri, 27 Mar 2009 10:25:11 -0700 Subject: [PATCH] AI 143102: Add build environment shortcut to runtest.py. This change does not affect device code. BUG=1741172 Automated import of CL 143102 --- envsetup.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/envsetup.sh b/envsetup.sh index 016c399ba4..bccf7c9c97 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 "