Skip to content

Commit

Permalink
Fix Windows file name for CLI script
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Mar 29, 2024
1 parent 7a1af82 commit 8dd588c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-java-os-mix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
distribution: temurin
java-version: ${{ matrix.java-version }}

- name: Execute integration test (on Unixes)
- name: Execute integration test
run: |
uname -a
./gradlew --version
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ tasks.register("integrationTestCliOnly") {
workingDir INTEGRATION_TEST_DIRECTORY_CLI
file(BUILD_REPORTS_DIRECTORY).mkdirs()
String hscScriptFileName = "../../htmlSanityCheck-cli/${Project.DEFAULT_BUILD_DIR_NAME}/install/hsc/bin/hsc"
commandLine System.getProperty("os.name") ==~ /Windows.*/ ? "${hscScriptFileName}.bat" : hscScriptFileName,
commandLine System.getProperty("os.name") ==~ /Windows.*/ ? "${hscScriptFileName.replace('/', '\\')}.bat" : hscScriptFileName,
"-r", BUILD_REPORTS_DIRECTORY, "../common/src/test/resources"
}
logger.debug "Script output: ${result}"
Expand Down

0 comments on commit 8dd588c

Please sign in to comment.