update example

pull/7745/head
Olli-Pekka Puolitaival 2018-08-20 18:59:31 +03:00
parent b4822c8631
commit cae3d1d34e
2 changed files with 8 additions and 6 deletions

View File

@ -18,7 +18,6 @@ from icetea_lib.bench import Bench
class Testcase(Bench): class Testcase(Bench):
def __init__(self): def __init__(self):
self.device = None
Bench.__init__(self, Bench.__init__(self,
name="test_cmdline", name="test_cmdline",
title="Smoke test for command line interface", title="Smoke test for command line interface",
@ -34,17 +33,18 @@ class Testcase(Bench):
"application": { "application": {
"name": "TEST_APPS-device-exampleapp" "name": "TEST_APPS-device-exampleapp"
} }
} },
"1": {"nick": "dut1"},
} }
} }
) )
def setup(self): def setup(self):
self.device = self.get_node_endpoint(1) pass
def case(self): def case(self):
self.command(1, "echo hello world", timeout=5) self.command("dut1", "echo hello world")
self.device.command("help") self.command("dut1", "help")
def teardown(self): def teardown(self):
pass pass

View File

@ -34,7 +34,9 @@ class Testcase(Bench):
'*': { # requirements for all nodes '*': { # requirements for all nodes
"count": 1, "count": 1,
"type": "hardware", "type": "hardware",
"application": {"name": "TEST_APPS-device-socket_app"} "application": {
"name": "TEST_APPS-device-socket_app"
}
}, },
"1": {"nick": "dut1"}, "1": {"nick": "dut1"},
} }