Skip to content

Commit cae3d1d

Browse files
author
Olli-Pekka Puolitaival
committed
update example
1 parent b4822c8 commit cae3d1d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

TEST_APPS/testcases/example/test_cmdline.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
class Testcase(Bench):
2020
def __init__(self):
21-
self.device = None
2221
Bench.__init__(self,
2322
name="test_cmdline",
2423
title="Smoke test for command line interface",
@@ -34,17 +33,18 @@ def __init__(self):
3433
"application": {
3534
"name": "TEST_APPS-device-exampleapp"
3635
}
37-
}
36+
},
37+
"1": {"nick": "dut1"},
3838
}
3939
}
4040
)
4141

4242
def setup(self):
43-
self.device = self.get_node_endpoint(1)
43+
pass
4444

4545
def case(self):
46-
self.command(1, "echo hello world", timeout=5)
47-
self.device.command("help")
46+
self.command("dut1", "echo hello world")
47+
self.command("dut1", "help")
4848

4949
def teardown(self):
5050
pass

TEST_APPS/testcases/netsocket/TCPSOCKET_ECHOTEST_BURST_SHORT.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ def __init__(self):
3434
'*': { # requirements for all nodes
3535
"count": 1,
3636
"type": "hardware",
37-
"application": {"name": "TEST_APPS-device-socket_app"}
37+
"application": {
38+
"name": "TEST_APPS-device-socket_app"
39+
}
3840
},
3941
"1": {"nick": "dut1"},
4042
}

0 commit comments

Comments
 (0)