ac010beec5
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>
7 lines
159 B
Python
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)
|