Files
openide/python/helpersTests/run_python2_tests.sh
Pavel Karateev 9e4d63df04 [python] PCQA-1466 use Bash instead of Python
(cherry picked from commit cfe8ef83f2072b3fb6ba2afdc5837d90ab15fbcf)

IJ-MR-188543

GitOrigin-RevId: 60431a7de1ae026408be603d982a5d637e7a309d
2026-01-20 20:12:26 +00:00

15 lines
415 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PYTHON_PLUGIN_DIR="$(cd "$CURRENT_DIR/.." && pwd)"
HELPERS_DIR="$PYTHON_PLUGIN_DIR/helpers"
PYCHARM_DIR="$HELPERS_DIR/pycharm"
PY3ONLY_DIR="$HELPERS_DIR/py3only"
export PYTHONPATH="$PY3ONLY_DIR:$PYCHARM_DIR:$HELPERS_DIR${PYTHONPATH:+:$PYTHONPATH}"
python2 -m pytest --junit-xml=.tox/reports/junit-py27.xml tests