From 424b876778810447fa3e34dff787add1b1ae216a Mon Sep 17 00:00:00 2001 From: Simran Basi Date: Wed, 23 Aug 2017 12:03:04 -0700 Subject: [PATCH] Add shortcut to atest after envsetup.sh is sourced. Bug: None Test: On master, atest points to atest in tradefed. Change-Id: Iad6e48a12c4180f77b483cadd4c316820ede87cd --- envsetup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/envsetup.sh b/envsetup.sh index 4d1d67b4a7..a8bef92161 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -1635,6 +1635,14 @@ function provision() "$ANDROID_PRODUCT_OUT/provision-device" "$@" } +function atest() +{ + # TODO (sbasi): Replace this to be a destination in the build out when & if + # atest is built by the build system. (This will be necessary if it ever + # depends on external pip projects). + "$(gettop)"/tools/tradefederation/core/atest/atest.py "$@" +} + if [ "x$SHELL" != "x/bin/bash" ]; then case `ps -o command -p $$` in *bash*)