← Commit list

cb4b3e75e8

Viktor Szakats
Viktor Szakats
2026-06-09
SUCCESS Duration: 259s

Subject

smbserver: check impacket presence differently

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/smbserver.py+2 -3
@@ -25,6 +25,7 @@
import argparse
import configparser
+import importlib.util
import logging
import os
import signal
@@ -36,9 +37,7 @@ import threading
from util import ClosingFileHandler, TestData
# impacket needs to be installed in the Python environment
-try:
- import impacket # noqa: F401
-except ImportError:
+if importlib.util.find_spec('impacket') is None:
sys.stderr.write(
'Warning: Python package impacket is required for smb testing; '
'use pip or your package manager to install it\n')