Search for test executables in odk_test

[ Merge of http://go/wvgerrit/94507 ]

./build_and_run_all_tests.sh runs all WV unit/integration tests.
It searches for unit/integration tests in $OUT/data/nativetest/ .
ODK tests are in $OUT/data/nativetest/vendor/odk_test. Adding this
path to the list of directories that the script searches through.

Bug: 150158890
Test: Run ./build_and_run_all_tests.sh
Change-Id: Ib3b7d247a5cb86f9972157c13ad60b7f3cbbb7dc
This commit is contained in:
Rahul Frias
2020-02-24 14:41:34 -08:00
parent 9c60d1e1ae
commit 19605579d5

View File

@@ -93,6 +93,8 @@ try_adb_push() {
# android-tests.zip requires /data/nativetest, we should use the same # android-tests.zip requires /data/nativetest, we should use the same
if [ -f $OUT/data/nativetest/$1 ]; then if [ -f $OUT/data/nativetest/$1 ]; then
test_file=$OUT/data/nativetest/$1 test_file=$OUT/data/nativetest/$1
elif [ -f $OUT/data/nativetest/vendor/$1/$1 ]; then
test_file=$OUT/data/nativetest/vendor/$1/$1
else else
echo "I cannot find $1" echo "I cannot find $1"
echo "I think it should be in $OUT/data/nativetest" echo "I think it should be in $OUT/data/nativetest"