Skip to content

Commit

Permalink
easy on the windows
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAbides committed Aug 11, 2023
1 parent b5ac289 commit 709c4fe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/run_test_long.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ set -e

CDPATH="" cd -- "$(dirname -- "$0")/.."

. src/lib
setUp() {
. src/lib
}

# Nothing special about this one. It just happens to be HEAD of main when writing this.
# Most recent version is go1.21rc4
Expand All @@ -30,6 +32,11 @@ do_test_run() {
echo "****** end go env"
GO_VERSION="$CONSTRAINT" ./src/run
WANT_GOROOT="$RUNNER_WORKSPACE/setup-go-faster/go/$WANT_VERSION/x64"
if [ "$(goos)" = "windows" ]; then
# Windows is trickier because of how it translates paths.
# Just check that is has the right suffix.
WANT_GOROOT="setup-go-faster\\go\\$WANT_VERSION\\x64"
fi
echo "start GITHUB_OUTPUT"
cat "$GITHUB_OUTPUT"
echo "end GITHUB_OUTPUT"
Expand Down

0 comments on commit 709c4fe

Please sign in to comment.