kumquat-buildroot/support/testing/tests/package/sample_python_subprocess32.py
Ricardo Martincoski ac010beec5 support/testing: add python-subprocess32 test
Add a simple test case to check the basic usage by calling 'ls' and
checking the output.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-11-23 22:05:46 +01:00

7 lines
159 B
Python

import subprocess32
output = subprocess32.check_output(["ls", "-l", "/dev/null"])
print(output)
assert("/dev/null" in output)
assert("No such" not in output)