Skip to content

Commit c3355d1

Browse files
author
Thierry RAMORASOAVINA
committed
Fix tests
1 parent d52d4e8 commit c3355d1

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ jobs:
185185
# This is needed so that the Git tag is parsed and the khiops-python
186186
# version is retrieved
187187
git config --global --add safe.directory $(realpath .)
188+
echo "cloned samples : " . $(find ./khiops-samples)
189+
echo "samples defined as env var : ${KHIOPS_SAMPLES_DIR} " . $(find ${KHIOPS_SAMPLES_DIR})
188190
CONDA="/root/miniforge3/bin/conda"
189191
# Native Khiops-based Conda environment, and
190192
# `khiops-core`-based Conda environment

tests/test_remote_access.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,13 @@ def test_train_predictor_fail_and_log_with_remote_access(self):
230230
def test_samples_dir_inferred_from_remote_home(self):
231231
"""Test samples_dir is correctly inferred using a remote path in HOME"""
232232

233+
if self.remote_access_test_case() == "KhiopsDockerRunner":
234+
self.skipTest(
235+
f"current test {os.environ.get('PYTEST_CURRENT_TEST')}"
236+
" is skipped for "
237+
f"{self.remote_access_test_case()} test case"
238+
)
239+
233240
# Save initial state
234241
# This runner has remote paths (for root_temp_dir for example)
235242
initial_runner = kh.get_runner()

0 commit comments

Comments
 (0)