Skip to content

Commit 3bea74d

Browse files
authored
Merge pull request #154 from alekla01/htrun-patch-1
add power_on & connected to htrun grm allocate requirements
2 parents 5f1b4a2 + 546046c commit 3bea74d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

packages/mbed-host-tests/test/conn_primitive_remote.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ def test_constructor(self):
8888
# allocate is called
8989
self.remote.client.allocate.assert_called_once_with({
9090
'platform_name': self.config.get('platform_name'),
91+
'power_on': True,
92+
'connected': True,
9193
'tags': {"a": True, "b": True}})
9294

9395
# flash is called

src/mbed_os_tools/test/host_tests_conn_proxy/conn_primitive_remote.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ def __init__(self, name, config, importer=__import__):
2828
self.platform_name = config.get('platform_name', None)
2929
self.baudrate = config.get('baudrate', DEFAULT_BAUD_RATE)
3030
self.image_path = config.get('image_path', None)
31-
self.allocate_requirements = {"platform_name": self.platform_name}
31+
self.allocate_requirements = {
32+
"platform_name": self.platform_name,
33+
"power_on": True,
34+
"connected": True
35+
}
3236

3337
if self.config.get("tags"):
3438
self.allocate_requirements["tags"] = {}

test/test/conn_primitive_remote.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def test_constructor(self):
8686
# allocate is called
8787
self.remote.client.allocate.assert_called_once_with({
8888
'platform_name': self.config.get('platform_name'),
89+
'power_on': True,
90+
'connected': True,
8991
'tags': {"a": True, "b": True}})
9092

9193
# flash is called

0 commit comments

Comments
 (0)