forked from openkylin/platform_build
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
This commit is contained in:
parent
c87cb75a66
commit
b18e16d359
11
envsetup.sh
11
envsetup.sh
|
@ -974,6 +974,17 @@ function runtest()
|
||||||
(cd "$T" && development/tools/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 () {
|
function godir () {
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Usage: godir <regex>"
|
echo "Usage: godir <regex>"
|
||||||
|
|
Loading…
Reference in New Issue