From 214851cd2108fff97c201a33e979f63b930b361d Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Sat, 16 May 2020 11:57:28 +0100 Subject: [PATCH] Only perform platform test on ming/cygwin. --- test/functions.source | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/functions.source b/test/functions.source index ed9b73c4..afc694f8 100644 --- a/test/functions.source +++ b/test/functions.source @@ -440,7 +440,10 @@ startHttpServer() { # PLATFORM = the scripting host (eg mingw) # host = the build host (eg windows for msvc) - host=$(runTest exiv2 -vVg platform | tail -1 | cut -d= -f 2) # windows + host=$PLATFORM + if [ $PLATFORM == 'cygwin' -o $PLATFORM == 'mingw' ]; then + host=$(runTest exiv2 -vVg platform | tail -1 | cut -d= -f 2) # windows + fi if [ "$host" != windows ]; then host="$PLATFORM" ; fi if [ "$host" == "cygwin" ]; then dport=12762