From 5177da5f5bf8d879aeac3f972476b25d67777fc2 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Fri, 25 May 2012 15:58:33 -0700 Subject: [PATCH] Fixed error messages for retrieving environment variables Change-Id: Ib84479bfc702de1e1c6a0d09ed7ccf6ad06e1b2b --- testrunner/android_build.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testrunner/android_build.py b/testrunner/android_build.py index 584ef5279..a10d43b6f 100644 --- a/testrunner/android_build.py +++ b/testrunner/android_build.py @@ -42,7 +42,8 @@ def GetTop(): # TODO: does this need to be reimplemented to be like gettop() in envsetup.sh root_path = os.getenv("ANDROID_BUILD_TOP") if root_path is None: - logger.Log("Error: ANDROID_BUILD_TOP not defined. Please run envsetup.sh") + logger.Log("Error: ANDROID_BUILD_TOP not defined. Please run " + "envsetup.sh and lunch/choosecombo") raise errors.AbortError return root_path @@ -109,7 +110,8 @@ def GetProductOut(): """ path = os.getenv("ANDROID_PRODUCT_OUT") if path is None: - logger.Log("Error: ANDROID_PRODUCT_OUT not defined. Please run envsetup.sh") + logger.Log("Error: ANDROID_PRODUCT_OUT not defined. Please run " + "envsetup.sh and lunch/choosecombo") raise errors.AbortError return path