bluetooth: Do not start chrome for SASanity tests
Added an arg to quick_sanity_init to control starting the browser
BUG=b:139074892
TEST=Ran bluetooth_AdapterQuickSanity
Change-Id: Ic76f8f85c9e613b269a7947b35411938af7613b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2269492
Tested-by: Shijin Abraham <shijinabraham@google.com>
Reviewed-by: Daniel Winkler <danielwinkler@google.com>
Commit-Queue: Shijin Abraham <shijinabraham@google.com>
diff --git a/server/cros/bluetooth/bluetooth_adapter_quick_tests.py b/server/cros/bluetooth/bluetooth_adapter_quick_tests.py
index 7528db6..38d61f1 100644
--- a/server/cros/bluetooth/bluetooth_adapter_quick_tests.py
+++ b/server/cros/bluetooth/bluetooth_adapter_quick_tests.py
@@ -81,7 +81,7 @@
def quick_test_init(self, host, use_btpeer=True, use_chameleon=False,
- flag='Quick Sanity'):
+ flag='Quick Sanity', start_browser=True):
"""Inits the test batch"""
self.host = host
#factory can not be declared as local variable, otherwise
@@ -90,7 +90,7 @@
try:
self.factory = remote_facade_factory.RemoteFacadeFactory(host,
- disable_arc=True)
+ no_chrome = not start_browser, disable_arc=True)
self.bluetooth_facade = self.factory.create_bluetooth_hid_facade()
# For b:142276989, catch 'object_path' fault and reboot to prevent
diff --git a/server/site_tests/bluetooth_AdapterSASanity/bluetooth_AdapterSASanity.py b/server/site_tests/bluetooth_AdapterSASanity/bluetooth_AdapterSASanity.py
index b831cdd..13900e9 100644
--- a/server/site_tests/bluetooth_AdapterSASanity/bluetooth_AdapterSASanity.py
+++ b/server/site_tests/bluetooth_AdapterSASanity/bluetooth_AdapterSASanity.py
@@ -213,6 +213,7 @@
@param num_iterations: the number of rounds to execute the test
"""
# Initialize and run the test batch or the requested specific test
- self.quick_test_init(host, use_btpeer=False, flag=flag)
+ self.quick_test_init(host, use_btpeer=False, flag=flag,
+ start_browser=False)
self.sa_sanity_batch_run(num_iterations, test_name)
self.quick_test_cleanup()