Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 1656220

Browse files
author
Simo Kuusela
committed
meta-iotqa: After Bluetooth test disable Bluetooth
At the start of Bluetooth testing, Bluetooth is getting enabled so after tests are done it should be disabled again so it doesn't interfere with other tests. For some reason WiFi test takes about 2 minutes longer with Minnowboard if Bluetooth isn't disabled after Bluetooth test is done. Signed-off-by: Simo Kuusela <simo.kuusela@intel.com>
1 parent 1f7f1be commit 1656220

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

meta-iotqa/lib/oeqa/runtime/sanity/comm_btcheck.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ class CommBluetoothTest(oeRuntimeTest):
88
@class CommBluetoothTest
99
"""
1010
log = ""
11+
12+
def setUp(self):
13+
self.target.run('connmanctl enable bluetooth')
14+
time.sleep(8)
15+
16+
def tearDown(self):
17+
self.target.run('connmanctl disable bluetooth')
18+
1119
def target_collect_info(self, cmd):
1220
"""
1321
@fn target_collect_info
@@ -29,8 +37,6 @@ def test_comm_btcheck(self):
2937
# un-block software rfkill lock
3038
self.target.run('rfkill unblock all')
3139
# This is special for edison platform
32-
self.target.run('connmanctl enable bluetooth')
33-
time.sleep(8)
3440
# Collect system information as log
3541
self.target_collect_info("ifconfig")
3642
self.target_collect_info("hciconfig")

0 commit comments

Comments
 (0)