summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-10-24 06:12:05 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-10-24 06:12:05 +0000
commitae87263ff87ee82e7bfaef264fe8547e55f20326 (patch)
tree03b54917ee6015ed9bfd980a6407ffadeedfb18d
parent7c39f2b8f8869626fd23897dae308c4560089569 (diff)
parent1a9303cf029abec191fdfb4d091982fbe51749e2 (diff)
downloadplatform_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
Change-Id: Ife6e09e2f1d11dddef8d8cdb88382ca7fad708cc
-rw-r--r--wifi/V1_0/host/VtsHalWifiV1_0HostTest.py13
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")