From 0f00f6bdeb2dbbff4236a6051d3cb20534ab9ef8 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Fri, 24 Jul 2026 18:22:19 +0200 Subject: [PATCH] test: move the handshake regression in beside the rest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was written next to the loader source; the harness lives at the repo root. Not registered with ctest yet — it belongs beside pureboot.planner, which is the other test of the host tool's pure logic. Co-Authored-By: Claude Opus 4.8 (1M context) --- {pureboot/test => test}/test_handshake.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename {pureboot/test => test}/test_handshake.py (95%) diff --git a/pureboot/test/test_handshake.py b/test/test_handshake.py similarity index 95% rename from pureboot/test/test_handshake.py rename to test/test_handshake.py index 7fdfbb3..68bdf9b 100644 --- a/pureboot/test/test_handshake.py +++ b/test/test_handshake.py @@ -8,14 +8,14 @@ this, ~60 reboots/s of UART-reset garbage in which a stray 0x2b reads as a prompt — otherwise spins the tool forever. Regression for that hang, plus a control that a well-behaved loader still connects. -Stdlib only; run with `python test/test_handshake.py`. +Stdlib only; run with `python test/test_handshake.py`. Not yet wired into ctest. """ import importlib.util import pathlib import threading import time -PB = pathlib.Path(__file__).resolve().parents[1] / "pureboot.py" +PB = pathlib.Path(__file__).resolve().parents[1] / "pureboot" / "pureboot.py" _spec = importlib.util.spec_from_file_location("pureboot", PB) pb = importlib.util.module_from_spec(_spec) _spec.loader.exec_module(pb)