File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,13 @@ WORKSPACE_DIR=workspace
1212mkdir -p $TEST_RESULTS_DIR
1313mkdir -p $WORKSPACE_DIR
1414
15- mapfile -t TEST_RESULT_DIRS < <( find $WORKSPACE_DIR -name test-results -type d)
15+ # Main project modules redirect their build directory to workspace/<project-path>/build/ in CI
16+ # (see build.gradle.kts layout.buildDirectory override). buildSrc is a separate Gradle build
17+ # that runs before the main build is configured, so this redirect never applies to it;
18+ # its test results always land in buildSrc/**/build/test-results/, not under workspace/.
19+ SEARCH_DIRS=($WORKSPACE_DIR buildSrc)
20+
21+ mapfile -t TEST_RESULT_DIRS < <( find " ${SEARCH_DIRS[@]} " -name test-results -type d)
1622
1723if [[ ${# TEST_RESULT_DIRS[@]} -eq 0 ]]; then
1824 echo " No test results found"
You can’t perform that action at this time.
0 commit comments