summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-10-26 20:05:48 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-10-26 20:05:48 +0000
commite4534481e9d0964cfff75f9915b071dc4a147d57 (patch)
tree03b54917ee6015ed9bfd980a6407ffadeedfb18d
parent3ad774595d22684eee16419372d6ed2a76189619 (diff)
parentae87263ff87ee82e7bfaef264fe8547e55f20326 (diff)
downloadplatform_test_vts-testcase_hal-oreo-m2-s4-release.tar.gz
platform_test_vts-testcase_hal-oreo-m2-s4-release.tar.bz2
platform_test_vts-testcase_hal-oreo-m2-s4-release.zip
Change-Id: Idcc4b00d91c19a9db144625bbf17b1f635490c04
-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")