davsclaus opened a new pull request, #28146: URL: https://github.com/apache/camel/pull/28146
Follow-up of [CAMEL-25820](https://issues.apache.org/jira/browse/CAMEL-25820) (#28113): `LogConfigurationTest.withoutTheDirectoryOfTheCliTheLogFileIsInTheCamelDirectoryOfTheUser` failed in a full run of camel-jbang-core, depending on the order of the tests: ``` expected: ".../camel-jbang-core/target/test-home-2/.camel/84499.log" but was: "/var/folders/.../junit-10245052296718260853/.camel/84499.log" ``` The tests of camel-jbang-core run in reused forks. A test of a command that configured the logging (`RuntimeUtil.configureLog`, as the CLI does) leaves `camel.jbang.logDir` set to the Camel directory of its own temp home. The test class cleared the property after each of its tests, but not before the first one. - Each test of `LogConfigurationTest` now starts without the property. ## Tests - Reproduced with a throwaway test class that leaves the property set, run before `LogConfigurationTest` in one fork (`-Dsurefire.runOrder=alphabetical -Dcamel.surefire.forkCount=1`): without the change, the same failure; with it, all 7 tests pass. The throwaway class is not part of the PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
