Skip to content

Commit 8dd588c

Browse files
committed
Fix Windows file name for CLI script
1 parent 7a1af82 commit 8dd588c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test-java-os-mix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
distribution: temurin
4040
java-version: ${{ matrix.java-version }}
4141

42-
- name: Execute integration test (on Unixes)
42+
- name: Execute integration test
4343
run: |
4444
uname -a
4545
./gradlew --version

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ tasks.register("integrationTestCliOnly") {
165165
workingDir INTEGRATION_TEST_DIRECTORY_CLI
166166
file(BUILD_REPORTS_DIRECTORY).mkdirs()
167167
String hscScriptFileName = "../../htmlSanityCheck-cli/${Project.DEFAULT_BUILD_DIR_NAME}/install/hsc/bin/hsc"
168-
commandLine System.getProperty("os.name") ==~ /Windows.*/ ? "${hscScriptFileName}.bat" : hscScriptFileName,
168+
commandLine System.getProperty("os.name") ==~ /Windows.*/ ? "${hscScriptFileName.replace('/', '\\')}.bat" : hscScriptFileName,
169169
"-r", BUILD_REPORTS_DIRECTORY, "../common/src/test/resources"
170170
}
171171
logger.debug "Script output: ${result}"

0 commit comments

Comments
 (0)