From db873d6dab3b00f985c0547b27c676501f151179 Mon Sep 17 00:00:00 2001 From: felix Date: Wed, 29 Aug 2018 14:54:30 +0200 Subject: [PATCH] For unsetting CHICKEN_REPOSITORY_PATH use "env -u" only when MSYSTEM is set --- tests/runtests.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/runtests.sh b/tests/runtests.sh index a77a892d..6675bb0d 100755 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -63,10 +63,14 @@ mkdir -p test-repository cp $TYPESDB test-repository/types.db echo "======================================== repository search path ..." -export -p >./env.out -unset CHICKEN_REPOSITORY_PATH -$interpret -s repository-path-default.scm -. ./env.out +if test -z "$MSYSTEM"; then + export -p >./env.out + unset CHICKEN_REPOSITORY_PATH + $interpret -s repository-path-default.scm + . ./env.out +else + env -u CHICKEN_REPOSITORY_PATH $interpret -s repository-path-default.scm +fi $compile_s sample-module.scm -j sample-module cp sample-module.so $CHICKEN_INSTALL_REPOSITORY cp sample-module.import.scm $CHICKEN_INSTALL_REPOSITORY -- 2.16.2