diff options
author | Akash Agrawal <akagrawal@google.com> | 2019-04-10 00:27:27 -0700 |
---|---|---|
committer | Akash Agrawal <akagrawal@google.com> | 2019-04-10 00:27:27 -0700 |
commit | 90401b3d04824a040e38b186647ccabaff99361d (patch) | |
tree | e34381a4ea9d2d06a140d7e6d1bb509cfc4f6600 /emu_test | |
parent | c5e6c03ae28a887824890081cc980d30d3bf3f09 (diff) | |
download | platform_testing-90401b3d04824a040e38b186647ccabaff99361d.tar.gz |
Fix to detect correct test suite file
Fix to detect correct test suite file as there are multiple artifacts
with "cts" in name.
Test: Local
Bug: 130228841
Change-Id: I850051c6e4962332a4ca184c12f8afa20615d264
Diffstat (limited to 'emu_test')
-rwxr-xr-x | emu_test/run_test.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/emu_test/run_test.sh b/emu_test/run_test.sh index 25abf303e..cb6952b09 100755 --- a/emu_test/run_test.sh +++ b/emu_test/run_test.sh @@ -20,7 +20,16 @@ then fi #for cts, android-cts.zip #for gts, android-gts.zip -TEST_SUITE=`ls $BUILD_DIR/test_suite` +if [[ `ls $BUILD_DIR/test_suite` == *"cts"* ]] +then + TEST_SUITE="android-cts.zip" +elif [[ `ls $BUILD_DIR/test_suite` == *"gts"* ]] +then + TEST_SUITE="android-gts.zip" +else + echo "Test suite does not exist" + exit 1 +fi echo "$TEST_SUITE" mkdir -p $BUILD_DIR/emulator |