jw-pkg/test/unit/python/jw/pkg/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann dd67dbf544
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m15s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 6m1s
CI / Packaging test (pull_request) Successful in 0s
lib.ec.ssh.AsyncSSH: Forward SIGINT to remote
The first Ctrl-C cancels the running task while the SSH connection is still
open, but _run_ssh() has no cleanup: the connection is abandoned and the
remote process is never signalled. A long-running command such as zypper
dup therefore keeps running after the client dies, taking its children with
it and leaving the system in a half-baked state, e.g. a mid-air package
transaction.

Catch the cancellation inside the run, forward SIGINT to the remote
process, and wait for it to exit, draining the captured output, before
propagating the cancellation.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.2
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-11-20 22:27:52 +01:00
..
App test: Fix mypy strict errors in unit tests 2026-09-13 15:42:29 +02:00
Distro lib.Distro.paths(): Add method 2026-11-18 19:13:01 +01:00
distros lib.distros.debian.Distro._install(): Protect installed pkgs 2026-11-08 13:13:34 +01:00
ec lib.ec.ssh.AsyncSSH: Forward SIGINT to remote 2026-11-20 22:27:52 +01:00
ExecApp lib.ExecApp, ec.Local: Don't use keyword "local" as URI 2026-11-09 21:06:03 +01:00
FcCache lib.FcCache: Add a write-through read cache 2026-10-17 12:17:21 +02:00
FcWrapper lib.FcWrapper: Add a delegating file context wrapper 2026-10-17 12:17:21 +02:00
file_types lib.Package: Add and fill version field 2026-10-28 20:14:55 +01:00
FileContext lib.FileContext: Limit accessible addresses 2026-11-07 16:49:24 +01:00
Package lib.Package: Add and fill version field 2026-10-28 20:14:55 +01:00
PathFilter lib.PathFilter / lib.pf: Add class + module 2026-11-07 16:47:55 +01:00
pf lib.pf.PkgSecrets: Add 2026-11-18 19:13:01 +01:00
pm lib.pm.*.install_packages(): Add functions 2026-10-28 20:14:55 +01:00
ProcFilter lib.ProcFilter: Add unit tests 2026-09-14 20:52:59 +02:00
ProjectConf test: Fix mypy strict errors in unit tests 2026-09-13 15:42:29 +02:00
Result test: apply yapf formatting to test.py files 2026-07-04 07:35:17 +02:00
TarIo lib.TarIo: Add unit tests 2026-09-14 20:53:00 +02:00
Uri lib.ExecApp: Rename --pkg-filter to --path-filter 2026-11-07 19:37:27 +01:00
util lib.util: Add kebab_to_pascal() and pascal_to_kebab() 2026-11-18 19:13:01 +01:00
version lib.version.Dependency.__version_boundaries(): Use Version.next() 2026-09-15 21:43:47 +02:00
Makefile test: Move unit tests below jw/pkg 2026-06-25 20:57:05 +02:00