Add running make command for all tests of the matrix

This commit is contained in:
Laurent Indermuehle 2023-01-09 19:50:57 +01:00
parent e8d7de4a64
commit a646e76e87
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -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__':