Skip to content

Commit e281ec5

Browse files
committed
Test fix
1 parent 2c1ebea commit e281ec5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ if [ "${UPGRADE_LINTERS_VERSION}" == "true" ]; then
3535
echo "[MegaLinter init] UPGRADING LINTER VERSION"
3636
pip install pytest-cov pytest-timeout
3737
# Run only get_linter_version test methods
38-
pytest -v --durations=0 -k _get_linter_version /venvs/megalinter/
38+
pytest -v --durations=0 -k _get_linter_version /tmp/lint
3939
# Run only get_linter_help test methods
40-
pytest -v --durations=0 -k _get_linter_help /venvs/megalinter/
40+
pytest -v --durations=0 -k _get_linter_help /tmp/lint
4141
# Reinstall mkdocs-material because of broken dependency
4242
pip3 install --upgrade "markdown==3.3.7" mike mkdocs-material "mkdocs-glightbox==0.3.2" mdx_truly_sane_lists jsonschema json-schema-for-humans giturlparse webpreview "github-dependents-info==0.10.0"
4343
cd /tmp/lint || exit 1
@@ -51,9 +51,9 @@ if [ "${TEST_CASE_RUN}" == "true" ]; then
5151
echo "[MegaLinter init] RUNNING TEST CASES"
5252
pip install pytest-cov pytest-timeout pytest-xdist
5353
if [ -z "${TEST_KEYWORDS}" ]; then
54-
pytest -v --timeout=300 --durations=0 --cov=megalinter --cov-report=xml /venvs/megalinter/
54+
pytest -v --timeout=300 --durations=0 --cov=megalinter --cov-report=xml /tmp/lint
5555
else
56-
pytest -v --timeout=300 --durations=0 -k "${TEST_KEYWORDS}" /venvs/megalinter/
56+
pytest -v --timeout=300 --durations=0 -k "${TEST_KEYWORDS}" /tmp/lint
5757
fi
5858
PYTEST_STATUS=$?
5959
echo Pytest exited $PYTEST_STATUS

0 commit comments

Comments
 (0)