From a646e76e87ba119dbf64599ac4a57b8eb6a30e08 Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Mon, 9 Jan 2023 19:50:57 +0100 Subject: [PATCH] Add running make command for all tests of the matrix --- run_all_tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run_all_tests.py b/run_all_tests.py index 9bdda53..3c4070d 100755 --- a/run_all_tests.py +++ b/run_all_tests.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import yaml +import os github_workflow_file = '.github/workflows/ansible-test-plugins.yml' @@ -62,7 +63,10 @@ def main(): if not is_exclude(exclude_list, (db_engine, python, connector)): matrix.append((db_engine, python, connector)) - print(len(matrix)) + for tests in matrix: + make_cmd = f'make db_engine_version="{tests[0]}" python="{tests[1]}" connector="{tests[2]}" test-integration' + print(f'Run tests for: {tests[0]}, Python: {tests[1]}, Connector: {tests[2]}') + os.system(make_cmd) if __name__ == '__main__':