Skip to content

Commit

Permalink
test: use flux env in maybe-installtest
Browse files Browse the repository at this point in the history
problem: while the sched PYTHONPATH is set reliably by a mix of cmake
and maybe-installtest, the flux PYTHONPATH is not

solution: wrap the test in an invocation of `flux env` to set the
PYTHONPATH appropriately allowing the python shebang in python tests to
succeed
  • Loading branch information
trws committed Apr 30, 2024
1 parent 9c4334a commit 4b75098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/scripts/maybe-installtest
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ if test -n "$FLUX_SCHED_TEST_INSTALLED" -o -n "$FLUX_TEST_INSTALLED_PATH"; then
export FLUX_MODULE_PATH_PREPEND="${FLUX_SCHED_MOD_DIR}"
export PYTHONPATH="${FLUX_SCHED_PYTHON_SITELIB}${PYTHONPATH:+:${PYTHONPATH}}"
fi
exec $@
exec flux env $@

0 comments on commit 4b75098

Please sign in to comment.