aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-12-16 00:44:20 +0100
committerEgor Tensin <egor@tensin.name>2025-12-16 00:44:20 +0100
commit36d80b00088815202c53eb880d01457e6fbe8b17 (patch)
tree75382c2d0e59998d20a7a9b39a401b31a9e685ac /test
parentmodernize Compose usage (diff)
downloadcimple-36d80b00088815202c53eb880d01457e6fbe8b17.tar.gz
cimple-36d80b00088815202c53eb880d01457e6fbe8b17.zip
fix CI tests
Diffstat (limited to 'test')
-rw-r--r--test/src/lib/test_repo.py3
-rw-r--r--test/src/test_repo.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/src/lib/test_repo.py b/test/src/lib/test_repo.py
index 1d07a4e..0356ad8 100644
--- a/test/src/lib/test_repo.py
+++ b/test/src/lib/test_repo.py
@@ -225,7 +225,8 @@ class TestRepoSegfault(TestRepo):
return ec == -11
def run_output_matches(self, output):
- return "Started the test program.\n" == output.decode()
+ output = output.decode()
+ return output.startswith("Started the test program.\n") and "You shouldn't see this." not in output
def run_files_are_present(self, *args):
return True
diff --git a/test/src/test_repo.py b/test/src/test_repo.py
index d68cd4a..eb717cb 100644
--- a/test/src/test_repo.py
+++ b/test/src/test_repo.py
@@ -18,7 +18,8 @@ from lib.tests import my_parametrize
def test_sigsegv(sigsegv):
ec, output = sigsegv.try_run()
assert ec == -11
- assert output == 'Started the test program.\n'
+ assert output.startswith('Started the test program.\n')
+ assert "You shouldn't see this." not in output
class LoggingEventRunComplete(LoggingEvent):