Ensure that the native tests are run from /data/nativetest to match TF.

Also cleanup a missing test from test_defs.xml

Change-Id: I9b50bd3f5c7a100a86dd550d367c8ed9a9f2bd62
This commit is contained in:
Tsu Chiang Chuang
2014-02-25 17:25:10 -08:00
parent f1a9c75865
commit c137f5f1a1
3 changed files with 46 additions and 10 deletions

View File

@@ -149,6 +149,25 @@ def GetProductOut():
return path
def GetTargetNativeTestPath():
"""Returns the full pathname to target/product data/nativetest/ directory.
Assumes build environment has been properly configured by envsetup &
lunch/choosecombo.
Returns:
The absolute file path of the Android target native test directory.
Raises:
AbortError: if Android target native test directory could not be found.
"""
path = os.path.join(GetProductOut(), "data", "nativetest")
if not os.path.exists(path):
logger.Log("Error: Target native test path could not be found")
raise errors.AbortError
return path
def GetTargetSystemBin():
"""Returns the full pathname to the target/product system/bin directory.