Skip to content
Snippets Groups Projects
Commit f7865713 authored by Manuel Günther's avatar Manuel Günther
Browse files

Checked output of subprocess call in test

parent ac5a67c6
No related branches found
No related tags found
No related merge requests found
...@@ -127,7 +127,8 @@ def test_training(): ...@@ -127,7 +127,8 @@ def test_training():
] ]
devnull = open(os.devnull, 'w') devnull = open(os.devnull, 'w')
subprocess.call(command, stdout=devnull) ret = subprocess.call(command, stdout=devnull)
assert ret == 0
# check that the training succeeded # check that the training succeeded
assert os.path.exists(cascade_file) assert os.path.exists(cascade_file)
...@@ -162,7 +163,8 @@ def test_detection(): ...@@ -162,7 +163,8 @@ def test_detection():
] ]
devnull = open(os.devnull, 'w') devnull = open(os.devnull, 'w')
subprocess.call(command, stdout=devnull) ret = subprocess.call(command, stdout=devnull)
assert ret == 0
# check that we can read the detected file # check that we can read the detected file
assert os.path.exists(detected_file) assert os.path.exists(detected_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment