Linux jobworks 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64
Apache/2.4.58 (Ubuntu)
Server IP : 10.0.1.5 & Your IP : 216.73.217.52
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3.12 /
test /
libregrtest /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-07-07 06:41
__init__.py
0
B
-rw-r--r--
2026-06-19 12:46
cmdline.py
23.04
KB
-rw-r--r--
2026-06-19 12:46
filter.py
2.4
KB
-rw-r--r--
2026-06-19 12:46
findtests.py
3.47
KB
-rw-r--r--
2026-06-19 12:46
logger.py
2.69
KB
-rw-r--r--
2026-06-19 12:46
main.py
25.68
KB
-rw-r--r--
2026-06-19 12:46
mypy.ini
997
B
-rw-r--r--
2026-06-19 12:46
pgo.py
1.37
KB
-rw-r--r--
2026-06-19 12:46
refleak.py
7.81
KB
-rw-r--r--
2026-06-19 12:46
result.py
7.03
KB
-rw-r--r--
2026-06-19 12:46
results.py
8.91
KB
-rw-r--r--
2026-06-19 12:46
run_workers.py
21.84
KB
-rw-r--r--
2026-06-19 12:46
runtests.py
6.8
KB
-rw-r--r--
2026-06-19 12:46
save_env.py
12.74
KB
-rw-r--r--
2026-06-19 12:46
setup.py
4.89
KB
-rw-r--r--
2026-06-19 12:46
single.py
10.4
KB
-rw-r--r--
2026-06-19 12:46
testresult.py
6.09
KB
-rw-r--r--
2026-06-19 12:46
tsan.py
700
B
-rw-r--r--
2026-06-19 12:46
utils.py
21.2
KB
-rw-r--r--
2026-06-19 12:46
win_utils.py
4.56
KB
-rw-r--r--
2026-06-19 12:46
worker.py
3.09
KB
-rw-r--r--
2026-06-19 12:46
Save
Rename
import os import time from test.support import MS_WINDOWS from .results import TestResults from .runtests import RunTests from .utils import print_warning if MS_WINDOWS: from .win_utils import WindowsLoadTracker class Logger: def __init__(self, results: TestResults, quiet: bool, pgo: bool): self.start_time = time.perf_counter() self.test_count_text = '' self.test_count_width = 3 self.win_load_tracker: WindowsLoadTracker | None = None self._results: TestResults = results self._quiet: bool = quiet self._pgo: bool = pgo def log(self, line: str = '') -> None: empty = not line # add the system load prefix: "load avg: 1.80 " load_avg = self.get_load_avg() if load_avg is not None: line = f"load avg: {load_avg:.2f} {line}" # add the timestamp prefix: "0:01:05 " log_time = time.perf_counter() - self.start_time mins, secs = divmod(int(log_time), 60) hours, mins = divmod(mins, 60) formatted_log_time = "%d:%02d:%02d" % (hours, mins, secs) line = f"{formatted_log_time} {line}" if empty: line = line[:-1] print(line, flush=True) def get_load_avg(self) -> float | None: if hasattr(os, 'getloadavg'): return os.getloadavg()[0] if self.win_load_tracker is not None: return self.win_load_tracker.getloadavg() return None def display_progress(self, test_index: int, text: str) -> None: if self._quiet: return results = self._results # "[ 51/405/1] test_tcl passed" line = f"{test_index:{self.test_count_width}}{self.test_count_text}" fails = len(results.bad) + len(results.env_changed) if fails and not self._pgo: line = f"{line}/{fails}" self.log(f"[{line}] {text}") def set_tests(self, runtests: RunTests) -> None: if runtests.forever: self.test_count_text = '' self.test_count_width = 3 else: self.test_count_text = '/{}'.format(len(runtests.tests)) self.test_count_width = len(self.test_count_text) - 1 def start_load_tracker(self) -> None: if not MS_WINDOWS: return try: self.win_load_tracker = WindowsLoadTracker() except PermissionError as error: # Standard accounts may not have access to the performance # counters. print_warning(f'Failed to create WindowsLoadTracker: {error}') def stop_load_tracker(self) -> None: if self.win_load_tracker is None: return self.win_load_tracker.close() self.win_load_tracker = None