Skip to content

Commit

Permalink
💬 Change interrupted testing subprocess status text
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Sep 18, 2024
1 parent 887b5ee commit b0daa8e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions wake/testing/pytest_plugin_multiprocess_server.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import multiprocessing
import multiprocessing.connection
import os
import pickle
import shutil
import signal
from contextlib import nullcontext
from pathlib import Path
from typing import Dict, List, Optional, Tuple, Union
import signal
import os

import pytest
import rich.progress
import rich.traceback
Expand Down Expand Up @@ -103,7 +104,7 @@ def pytest_sessionstart(self, session: pytest.Session):
)
p.start()
signal.signal(signal.SIGINT, signal.SIG_IGN)

def pytest_sessionfinish(self, session: pytest.Session):
self._queue.cancel_join_thread()
for p, conn in self._processes.values():
Expand Down Expand Up @@ -272,7 +273,7 @@ def pytest_runtestloop(self, session: pytest.Session):
elif msg[0] == "pytest_sessionfinish":
if progress is not None:
if keyboard_interrupt[index]:
text = f"#{index} skipped [yellow]⚠[/yellow]"
text = f"#{index} interrupted [yellow]⚠[/yellow]"
elif msg[2] == 0:
text = f"#{index} finished [green]✓[/green]"
else:
Expand Down

0 comments on commit b0daa8e

Please sign in to comment.