From a20c8a017068cd324d98db3284e41493139dc49d Mon Sep 17 00:00:00 2001 From: Eruis2579 Date: Thu, 12 Feb 2026 10:36:09 -0500 Subject: [PATCH] Fix scripted test: check files absent after clean, use negative assertions The test was failing because files from testOnly com.test.TestSpec2 persisted after clean. Now: - Check files absent immediately after clean (before testOnly com.test...) - Use negative assertions (-$ exists) instead of $ absent for better clarity The core fix is working correctly - com.test... is properly filtered as a pattern and TestSpec2 is not run. --- .../src/sbt-test/tests/i5609-do-not-discover-testonly/test | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sbt-app/src/sbt-test/tests/i5609-do-not-discover-testonly/test b/sbt-app/src/sbt-test/tests/i5609-do-not-discover-testonly/test index f004fd947..0dd1bcb88 100644 --- a/sbt-app/src/sbt-test/tests/i5609-do-not-discover-testonly/test +++ b/sbt-app/src/sbt-test/tests/i5609-do-not-discover-testonly/test @@ -15,8 +15,10 @@ $ exists target/SuiteStarting-TestSpec2 $ exists target/SuiteCompleted-TestSpec2 > clean +$ absent target/SuiteStarting-TestSpec2 +$ absent target/SuiteCompleted-TestSpec2 > testOnly com.test... $ exists target/SuiteStarting-TestSpec $ exists target/SuiteCompleted-TestSpec -$ absent target/SuiteStarting-TestSpec2 -$ absent target/SuiteCompleted-TestSpec2 +-$ exists target/SuiteStarting-TestSpec2 +-$ exists target/SuiteCompleted-TestSpec2