Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/idefix-ci-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Isothermal Sod test
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/sod-iso -all $TESTME_OPTIONS
- name: Mach reflection test
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD//MachReflection -all $TESTME_OPTIONS
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/MachReflection -all $TESTME_OPTIONS
- name: Sedov blast wave
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/SedovBlastWave -all $TESTME_OPTIONS

Expand Down
16 changes: 12 additions & 4 deletions scripts/ci/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@ if [ -d .venv ]; then
source .venv/bin/activate
fi

# jump in test directory
cd "$1"
# to get access to idefix ./pytools/ module in python code
if [[ -v PYTHONPATH ]]; then
export PYTHONPATH="${PWD}:${PYTHONPATH}"
else
export PYTHONPATH="${PWD}"
fi

# run the test the old way (still possible up to now)
#cd "$1"
#./testme.py "${@:2}"

# run the test
./testme.py "${@:2}"
# run the test the new way (via pytest)
./test.py -subdir "$@"
Loading