Commit 8024a5fa authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Delete system ICDs from Conda install, to avoid random CI crashes from bad system ICDs

parent 1ccb7fd7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,11 +30,11 @@ if [ -d test ]; then
    fi
  fi

  rm -Rf 
  if ! test -z "$TESTABLES"; then
    echo "TESTABLES: $TESTABLES"
    ulimit -c unlimited

    # Need to set both _TEST and _CTX because doctests do not use _TEST.
    ${PY_EXE} -m pytest -rw --durations=10 --tb=native  -rxs $TESTABLES

    # Avoid https://github.com/pytest-dev/pytest/issues/754:
+3 −0
Original line number Diff line number Diff line
@@ -57,6 +57,9 @@ PATH="$MINICONDA_INSTALL_DIR/bin:$PATH" conda env create --quiet --file "$CONDA_

source "$MINICONDA_INSTALL_DIR/bin/activate" testing

# https://github.com/conda-forge/ocl-icd-feedstock/issues/11#issuecomment-456270634
rm -f .miniconda3/envs/testing/etc/OpenCL/vendors/system-*.icd

# https://github.com/pypa/pip/issues/5345#issuecomment-386443351
export XDG_CACHE_HOME=$HOME/.cache/$CI_RUNNER_ID