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

Commit adb4c8e

Browse files
authored
Merge pull request #106 from skuusela/fix_slow_wifi_test
meta-iotqa: After Bluetooth test disable Bluetooth
2 parents 1f7f1be + 841289e commit adb4c8e

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

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

Lines changed: 8 additions & 5 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
@@ -26,11 +34,6 @@ def test_comm_btcheck(self):
2634
@param self
2735
@return
2836
'''
29-
# un-block software rfkill lock
30-
self.target.run('rfkill unblock all')
31-
# This is special for edison platform
32-
self.target.run('connmanctl enable bluetooth')
33-
time.sleep(8)
3437
# Collect system information as log
3538
self.target_collect_info("ifconfig")
3639
self.target_collect_info("hciconfig")

0 commit comments

Comments
 (0)