From fe806b8295aab5fcc12ac22ad35ded490bb27073 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 16:26:47 +0000 Subject: [PATCH 1/3] Initial plan From d1eb9fe18d79315b2f65ca6fc183d48fe2162c73 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 16:32:54 +0000 Subject: [PATCH 2/3] Fix test.sh Windows OSTYPE matching --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index cc4c62f..22a932f 100755 --- a/test.sh +++ b/test.sh @@ -37,7 +37,7 @@ trap "rm -f .tmp* data/.tmp*" EXIT INT TERM if [[ "$OSTYPE" == "linux-gnu"* ]]; then PYTHON="python" CMD="$PYTHON -m sacrebleu" -elif [[ "$OSTYPE" == "msys" ]]; then +elif [[ "$OSTYPE" == "msys"* ]]; then PYTHON="python" CMD="$PYTHON -m sacrebleu" elif [[ "$OSTYPE" == "darwin"* ]]; then From f411782cce29cde028eacca503eac32fbbecf692 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 17:52:52 +0000 Subject: [PATCH 3/3] Set default PYTHON/CMD in test script --- test.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/test.sh b/test.sh index 22a932f..667eae2 100755 --- a/test.sh +++ b/test.sh @@ -34,13 +34,9 @@ export SACREBLEU_FORMAT="text" trap "rm -f .tmp* data/.tmp*" EXIT INT TERM # For Travis CI to work on Windows/Mac OS X -if [[ "$OSTYPE" == "linux-gnu"* ]]; then - PYTHON="python" - CMD="$PYTHON -m sacrebleu" -elif [[ "$OSTYPE" == "msys"* ]]; then - PYTHON="python" - CMD="$PYTHON -m sacrebleu" -elif [[ "$OSTYPE" == "darwin"* ]]; then +PYTHON="python" +CMD="$PYTHON -m sacrebleu" +if [[ "$OSTYPE" == "darwin"* ]]; then # OS X ships python -> python2 by default, be explicit PYTHON=python3 CMD="$PYTHON -m sacrebleu"