1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 16:49:42 +00:00

update tests

This commit is contained in:
deadc0de6
2021-04-30 21:54:51 +02:00
parent 537eb95d59
commit 6b715bee3d
2 changed files with 10 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ import os
import sys
import subprocess
from concurrent import futures
from halo import Halo
MAX_JOBS = 10
@@ -52,6 +53,9 @@ def main():
tests = get_tests()
print()
spinner = Halo(text='Testing', spinner='bouncingBall')
spinner.start()
with futures.ThreadPoolExecutor(max_workers=MAX_JOBS) as ex:
wait_for = []
for test in tests:
@@ -68,10 +72,12 @@ def main():
print(log)
print('test {} failed ({})'.format(p, reason))
return False
else:
sys.stdout.write('.')
sys.stdout.flush()
#else:
# sys.stdout.write('.')
# sys.stdout.flush()
sys.stdout.write('\n')
spinner.stop()
print()
return True