From 167ed44b6627bfe4781b0a8ce98919e58f2c7735 Mon Sep 17 00:00:00 2001 From: Masakazu Kitajo Date: Wed, 8 Jul 2026 11:03:33 -0600 Subject: [PATCH] autest: skip async handshake test when plugin is absent The async_handshake test plugin is only built with OpenSSL (TS_USE_TLS_ASYNC). SkipUnless does not evaluate its conditions where it appears; it only registers them for the framework to check later, so the test file keeps executing and PrepareTestPlugin ran at load time and raised a ValueError when the plugin was missing, reported as a test exception instead of a skip. Guard the call on file existence so the test skips cleanly on non-OpenSSL builds. --- tests/gold_tests/tls/tls_async_handshake.test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/gold_tests/tls/tls_async_handshake.test.py b/tests/gold_tests/tls/tls_async_handshake.test.py index e652d0f6fc0..3adb786b671 100644 --- a/tests/gold_tests/tls/tls_async_handshake.test.py +++ b/tests/gold_tests/tls/tls_async_handshake.test.py @@ -33,7 +33,8 @@ ts = Test.MakeATSProcess("ts", enable_tls=True) server = Test.MakeOriginServer("server") -Test.PrepareTestPlugin(async_handshake, ts) +if os.path.isfile(async_handshake): + Test.PrepareTestPlugin(async_handshake, ts) server.addResponse( "sessionlog.json", {