Skip to content

Commit 572dc07

Browse files
committed
acceptance/dashboards: unset MSYS_NO_PATHCONV before fault.py on Windows
MSYS_NO_PATHCONV=1 (set in the parent test.toml) prevents MSYS2 from converting POSIX paths to Windows paths, causing Python to receive a broken path (/c/a/... instead of C:\a\...) when invoking fault.py. Unset it before the fault.py call, matching the pattern used by other dashboard scripts before their bin helper invocations. Co-authored-by: Denis Bilenko
1 parent ba70ec3 commit 572dc07

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • acceptance/bundle/resources/dashboards/publish-failure-retry

acceptance/bundle/resources/dashboards/publish-failure-retry/script

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ cleanup() {
66
}
77
trap cleanup EXIT
88

9+
# unset MSYS_NO_PATHCONV so MSYS2 converts the script path to a Windows path
10+
# when invoking the Python interpreter (required for fault.py to be found on Windows).
11+
unset MSYS_NO_PATHCONV
12+
913
# Inject a single publish failure so the first deploy creates the dashboard
1014
# draft but fails to publish it.
1115
fault.py "POST /api/2.0/lakeview/dashboards/*" 400 0 1

0 commit comments

Comments
 (0)