Verified Commit 14c9cdf0 authored by Adrian DC's avatar Adrian DC
Browse files

test(versions): ignore '--enable' attempts on Windows environments

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent bb1e7e3e
Loading
Loading
Loading
Loading
+6
Changes for tests/versions/test.sh: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -27,7 +27,13 @@ set -ex
  FORCE_COLOR=1 DEBUG_UPDATES_OFFLINE=true DEBUG_VERSION_FAKE=0.0.2 DEBUG_UPDATES_FAKE=0.0.1 git-dct --update-check
  FORCE_COLOR=1 DEBUG_UPDATES_OFFLINE=true DEBUG_VERSION_FAKE=0.0.2 DEBUG_UPDATES_FAKE=0.0.2 git-dct --update-check
  FORCE_COLOR=1 DEBUG_UPDATES_OFFLINE=true DEBUG_VERSION_FAKE=0.0.2 DEBUG_UPDATES_FAKE=0.0.3 git-dct --update-check
  if [ "${OSTYPE}" = 'msys' ] || [ "${OSTYPE}" = 'win32' ]; then
    echo 'INFO: Test "versions" has some ignored tests as it is not supported on this host'
  elif type wine >/dev/null 2>&1 && wine python --version >/dev/null 2>&1; then
    echo 'INFO: Test "versions" has some ignored tests as it is not supported in this Wine Python environment'
  else
    FORCE_COLOR=1 DEBUG_UPDATES_DAILY=true DEBUG_VERSION_FAKE=0.0.2 DEBUG_UPDATES_FAKE=0.0.3 git-dct --enable
    FORCE_COLOR=1 git-dct --enable
  fi
  FORCE_COLOR=1 git-dct --help
)