Debian Codegraph @

examples/remote/test_barebox.py

raw symbols SCIP
1 def test_target(target):
2 barebox = target.get_driver("CommandProtocol")
3 target.activate(barebox)
4
5 stdout, stderr, returncode = barebox.run("version")
6 assert returncode == 0
7 assert stdout
8 assert not stderr
9 assert "barebox" in "\n".join(stdout)
10
11 stdout, stderr, returncode = barebox.run("false")
12 assert returncode == 1
13 assert not stdout
14 assert not stderr