20 lines
493 B
Python
20 lines
493 B
Python
#!/usr/bin/env python3
|
|
import subprocess
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parent
|
|
|
|
|
|
def main():
|
|
args = sys.argv[1:]
|
|
for script in ('test_cases.py', 'test_concurrency.py'):
|
|
print(f'=== {script} ===')
|
|
result = subprocess.run([sys.executable, str(ROOT / script), *args])
|
|
if result.returncode != 0:
|
|
sys.exit(result.returncode)
|
|
print('=== Все тесты прошли ===')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main() |