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.
This commit is contained in:
Eruis2579 2026-02-12 10:36:09 -05:00
parent d5ee39fc21
commit a20c8a0170
1 changed files with 4 additions and 2 deletions

View File

@ -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