Added gtest to the list. cd to /sdcard before running native tests.

Some test need to be run in a place where they can write on the disk.
I know we should stop using /sdcard but until I see the new document
explaining how the launcher can access the playground, we are going
 to keep it that way.
This commit is contained in:
Nicolas Catania
2010-02-10 22:40:39 -08:00
parent bd9e4dda73
commit 13a2fcf30d
2 changed files with 3 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ class NativeTestSuite(test_suite.AbstractTestSuite):
# Single quotes are needed to prevent the shell splitting it.
output = adb.SendShellCommand("'%s 2>&1;echo -n exit code:$?'" %
full_path,
"(cd /sdcard;%s)" % full_path,
int(options.timeout))
success = output.endswith("exit code:0")
logger.Log("%s... %s" % (f, success and "ok" or "failed"))