Initial Commit
- initial default booting image
This commit is contained in:
12
support/testing/tests/package/test_python_serial.py
Normal file
12
support/testing/tests/package/test_python_serial.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import infra.basetest
|
||||
|
||||
|
||||
class TestHostPythonSerial(infra.basetest.BRHostPkgTest):
|
||||
hostpkgs = ["host-python-serial"]
|
||||
|
||||
def test_run(self):
|
||||
cmd = ["host/bin/python3", "-c", "import serial"]
|
||||
infra.run_cmd_on_host(self.builddir, cmd)
|
||||
|
||||
cmd = ["host/bin/python3", "-m", "serial.tools.list_ports"]
|
||||
infra.run_cmd_on_host(self.builddir, cmd)
|
||||
Reference in New Issue
Block a user