diff options
| author | android-build-team Robot <android-build-team-robot@google.com> | 2017-10-24 06:12:05 +0000 |
|---|---|---|
| committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-10-24 06:12:05 +0000 |
| commit | ae87263ff87ee82e7bfaef264fe8547e55f20326 (patch) | |
| tree | 03b54917ee6015ed9bfd980a6407ffadeedfb18d | |
| parent | 7c39f2b8f8869626fd23897dae308c4560089569 (diff) | |
| parent | 1a9303cf029abec191fdfb4d091982fbe51749e2 (diff) | |
| download | platform_test_vts-testcase_hal-oreo-mr1-cts-release.tar.gz platform_test_vts-testcase_hal-oreo-mr1-cts-release.tar.bz2 platform_test_vts-testcase_hal-oreo-mr1-cts-release.zip | |
Merge cherrypicks of [3116469, 3116470, 3116074, 3116075, 3116498, 3116499, 3117095, 3115988, 3116845, 3116471, 3116500, 3116573, 3115989, 3116501, 3116076, 3116472] into oc-mr1-releaseandroid-wear-8.1.0_r1android-cts-8.1_r9android-cts-8.1_r8android-cts-8.1_r7android-cts-8.1_r6android-cts-8.1_r5android-cts-8.1_r4android-cts-8.1_r3android-cts-8.1_r20android-cts-8.1_r2android-cts-8.1_r19android-cts-8.1_r18android-cts-8.1_r17android-cts-8.1_r16android-cts-8.1_r15android-cts-8.1_r14android-cts-8.1_r13android-cts-8.1_r12android-cts-8.1_r11android-cts-8.1_r10android-cts-8.1_r1android-8.1.0_r80android-8.1.0_r79android-8.1.0_r78android-8.1.0_r77android-8.1.0_r76android-8.1.0_r75android-8.1.0_r74android-8.1.0_r73android-8.1.0_r72android-8.1.0_r71android-8.1.0_r70android-8.1.0_r69android-8.1.0_r68android-8.1.0_r66android-8.1.0_r6android-8.1.0_r5android-8.1.0_r4android-8.1.0_r3android-8.1.0_r23android-8.1.0_r19android-8.1.0_r16android-8.1.0_r15android-8.1.0_r12android-8.1.0_r11android-8.1.0_r10android-8.1.0_r1security-oc-mr1-releaseoreo-mr1-wear-releaseoreo-mr1-security-releaseoreo-mr1-s1-releaseoreo-mr1-releaseoreo-mr1-cuttlefish-testingoreo-mr1-cts-releaseoreo-m4-s1-release
Change-Id: Ife6e09e2f1d11dddef8d8cdb88382ca7fad708cc
| -rw-r--r-- | wifi/V1_0/host/VtsHalWifiV1_0HostTest.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/wifi/V1_0/host/VtsHalWifiV1_0HostTest.py b/wifi/V1_0/host/VtsHalWifiV1_0HostTest.py index c2c313dd..085014da 100644 --- a/wifi/V1_0/host/VtsHalWifiV1_0HostTest.py +++ b/wifi/V1_0/host/VtsHalWifiV1_0HostTest.py @@ -17,6 +17,7 @@ import logging +from vts.runners.host import asserts from vts.runners.host import const from vts.runners.host import test_runner from vts.testcases.template.hal_hidl_gtest import hal_hidl_gtest @@ -28,6 +29,18 @@ class VtsHalWifiV1_0Host(hal_hidl_gtest.HidlHalGTest): WIFI_AWARE_FEATURE_NAME = "android.hardware.wifi.aware" + def setUpClass(self): + super(VtsHalWifiV1_0Host, self).setUpClass() + results = self.shell.Execute("setprop ctl.stop wpa_supplicant") + asserts.assertEqual(0, results[const.EXIT_CODE][0]) + results = self.shell.Execute("setprop ctl.stop wificond") + asserts.assertEqual(0, results[const.EXIT_CODE][0]) + + def tearDownClass(self): + results = self.shell.Execute("setprop ctl.start wificond") + if results[const.EXIT_CODE][0] != 0: + logging.error('Failed to start wificond') + def CreateTestCases(self): """Get all registered test components and create test case objects.""" pm_list = self.shell.Execute("pm list features") |
