Skip to content

Commit a635b54

Browse files
authored
Print currently logged in users when detecting more than one of them (#90)
1 parent b2d31ce commit a635b54

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/running/command/runbms.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
2-
from typing import DefaultDict, Dict, List, Any, Optional, Tuple, BinaryIO, TYPE_CHECKING
2+
from typing import DefaultDict, Dict, List, Any, Optional, Set, Tuple, BinaryIO, TYPE_CHECKING
33
from running.suite import BenchmarkSuite, is_dry_run
44
from running.benchmark import Benchmark, SubprocessrExit
55
from running.config import Configuration
@@ -220,8 +220,10 @@ def run_one_benchmark(
220220
oomed_count = DefaultDict(int)
221221
timeout_count: DefaultDict[str, int]
222222
timeout_count = DefaultDict(int)
223-
if len(get_logged_in_users()) > 1:
224-
logging.warning("More than one user logged in!")
223+
logged_in_users: Set[str]
224+
logged_in_users = get_logged_in_users()
225+
if len(logged_in_users) > 1:
226+
logging.warning("More than one user logged in: {}".format(" ".join(logged_in_users)))
225227
ever_ran = [False] * len(configs)
226228
for i in range(0, invocations):
227229
for p in plugins.values():

0 commit comments

Comments
 (0)