Skip to content
Snippets Groups Projects
Commit 360eeecd authored by Simon McVittie's avatar Simon McVittie
Browse files

testutils: Exit 1 on failure


At the moment the Python-based tests rely on being run under prove(1)
so that their TAP output is parsed, but I'm about to add a test that
enters a container and runs another test script inside the container,
and using TAP for that is less obvious. Don't rely on our stdout being
parsed as TAP.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent d111a2e7
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
import logging import logging
import os import os
import subprocess import subprocess
import sys
import tempfile import tempfile
import unittest import unittest
...@@ -132,5 +133,6 @@ def test_main(): ...@@ -132,5 +133,6 @@ def test_main():
'not ok 1 - %r (tap module not available)' 'not ok 1 - %r (tap module not available)'
% program.result % program.result
) )
sys.exit(1)
# vi: set sw=4 sts=4 et: # vi: set sw=4 sts=4 et:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment