mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-02-24 11:32:10 +00:00
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>
This commit is contained in:
committed by
Thomas Petazzoni
parent
d144edb21d
commit
ac010beec5
@@ -0,0 +1,6 @@
|
||||
import subprocess32
|
||||
|
||||
output = subprocess32.check_output(["ls", "-l", "/dev/null"])
|
||||
print(output)
|
||||
assert("/dev/null" in output)
|
||||
assert("No such" not in output)
|
||||
Reference in New Issue
Block a user