Skip to content

Commit cd56506

Browse files
authored
ci: run the test via the new way (test.py && **/testme.json) (#377)
1 parent e589979 commit cd56506

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/idefix-ci-jobs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Isothermal Sod test
4040
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/sod-iso -all $TESTME_OPTIONS
4141
- name: Mach reflection test
42-
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD//MachReflection -all $TESTME_OPTIONS
42+
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/MachReflection -all $TESTME_OPTIONS
4343
- name: Sedov blast wave
4444
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/SedovBlastWave -all $TESTME_OPTIONS
4545

scripts/ci/run-tests

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ if [ -d .venv ]; then
1313
source .venv/bin/activate
1414
fi
1515

16-
# jump in test directory
17-
cd "$1"
16+
# to get access to idefix ./pytools/ module in python code
17+
if [[ -v PYTHONPATH ]]; then
18+
export PYTHONPATH="${PWD}:${PYTHONPATH}"
19+
else
20+
export PYTHONPATH="${PWD}"
21+
fi
22+
23+
# run the test the old way (still possible up to now)
24+
#cd "$1"
25+
#./testme.py "${@:2}"
1826

19-
# run the test
20-
./testme.py "${@:2}"
27+
# run the test the new way (via pytest)
28+
./test.py -subdir "$@"

0 commit comments

Comments
 (0)