flush, always print

This commit is contained in:
Mira Weller
2024-10-25 17:01:33 +02:00
parent 33991cfb77
commit f559cd2618
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -135,10 +135,11 @@ if os.environ.get("GITHUB_WORKFLOW", ""):
# Check if the test even has DB access
marker = request.node.get_closest_marker("django_db")
f.write(str(time.time())+"\t"+ str(worker_id)+"\t"+str(request.path)+"\t"+ str(request.module)+"\t"+ str(request.function)+"\tstart\n")
f.flush()
# Run actual test
yield
f.write(str(time.time())+"\t"+ str(worker_id)+"\t"+str(request.path)+"\t"+ str(request.module)+"\t"+ str(request.function)+"\tend\n")
f.flush()
# If yes, do a dummy query at the end of the test
#if marker:
# with connection.cursor() as cursor: