diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-09 15:53:11 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-09 17:37:44 +0200 |
commit | 0600cacfadf00e916340f2394f1d3bfc173a3d0b (patch) | |
tree | 4b1900b096de3d2b3ad49094e86adc310ec79dac /test | |
parent | test: attempt to fix random port selection again (diff) | |
download | cimple-0600cacfadf00e916340f2394f1d3bfc173a3d0b.tar.gz cimple-0600cacfadf00e916340f2394f1d3bfc173a3d0b.zip |
store process output in SQLite
Diffstat (limited to 'test')
-rw-r--r-- | test/py/lib/test_repo.py | 3 | ||||
-rw-r--r-- | test/py/test_repo.py | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/py/lib/test_repo.py b/test/py/lib/test_repo.py index 1922245..3a4d847 100644 --- a/test/py/lib/test_repo.py +++ b/test/py/lib/test_repo.py @@ -46,3 +46,6 @@ class TestRepo(Repo): def count_ci_output_files(self): return len([name for name in os.listdir(self.output_dir) if os.path.isfile(os.path.join(self.output_dir, name))]) + + def output_matches(self, output): + return output.decode().startswith('A CI run happened at ') diff --git a/test/py/test_repo.py b/test/py/test_repo.py index 7599eff..3e507c3 100644 --- a/test/py/test_repo.py +++ b/test/py/test_repo.py @@ -54,6 +54,7 @@ def _test_repo_internal(env, repo, numof_processes, runs_per_process): for id, status, ec, output, url, rev in runs: assert status == 'finished', f'Invalid status for run {id}: {status}' + assert repo.output_matches(output), f"Output doesn't match: {output}" @pytest.mark.parametrize('numof_clients,runs_per_client', |