From 1e6940b92b1aea9087fe18951890e4d1748376ca Mon Sep 17 00:00:00 2001 From: Akuli Date: Thu, 9 Jan 2025 01:29:35 +0200 Subject: [PATCH] more windows haxing maybe?. --- runtests.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/runtests.sh b/runtests.sh index 50c5586e..f41fcf12 100755 --- a/runtests.sh +++ b/runtests.sh @@ -268,11 +268,17 @@ function run_test() if $DIFF --text -u $diff_color <( generate_expected_output $joufile $correct_exit_code | tr -d '\r' ) <( + if [[ "$OS" =~ Windows ]]; then + pathsep=";" + else + pathsep=":" + fi + if [ $stage == 3 ]; then - export PATH="$PWD:$PATH" + export PATH="$PWD$PATHSEP$PATH" else # stage1 and stage2 executables are in "bootstrap/" folder - export PATH="$PWD/bootstrap:$PATH" + export PATH="$PWD/bootstrap$PATHSEP$PATH" fi if [ $valgrind = no ]; then