heguanhui opened a new pull request, #64213:
URL: https://github.com/apache/doris/pull/64213
### What problem does this PR solve?
Issue Number: close #64212
Problem Summary: `LocalFileSystemTest.TestGlob` hardcodes the path
`./be/ut_build_ASAN/test/file_path/`, which only works when building with
`CMAKE_BUILD_TYPE=ASAN`. On other build types (LSAN, TSAN, UBSAN, etc.), the
test directory is `./be/ut_build_LSAN/test/file_path/` (or similar), causing
`safe_glob` to fail because the files are created in a non-existent path.
`run-be-ut.sh` sets `DORIS_HOME` to `${CMAKE_BUILD_DIR}/test/` at runtime
(line 556), which already adapts to each build type. Use `getenv("DORIS_HOME")`
to construct the path dynamically instead of hardcoding the ASAN-specific path.
### Release note
None
### Check List (For Author)
- Test: Unit Test
- Behavior changed: No
- Does this need documentation: No
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]