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