Skip to content

Commit

Permalink
Merge pull request #5102 from chu11/t9000_workaround
Browse files Browse the repository at this point in the history
testsuite: fix setup error in system tests
  • Loading branch information
mergify[bot] committed Apr 17, 2023
2 parents 1e4dbdf + 947f040 commit f36664d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions t/t9000-system.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@

test_description='Run tests against a system instance of Flux'

# Allow this test to be forced to run if debug is set _and_ a flux binary
# exists in the FLUX_TEST_INSTALLED_PATH or /usr/bin:
if test -n "$debug"; then
# If FLUX_TEST_INSTALLED_PATH is not set and /usr/bin/flux exists,
# set FLUX_TEST_INSTALLED_PATH to /usr/bin.
#
# Must set FLUX_TEST_INSTALLED_PATH before sourcing sharness,
# otherwise correct flux may not be used in tests.
if test -n "$FLUX_ENABLE_SYSTEM_TESTS"; then
if test -x ${FLUX_TEST_INSTALLED_PATH:-/usr/bin}/flux; then
FLUX_TEST_INSTALLED_PATH=${FLUX_TEST_INSTALLED_PATH:-/usr/bin}
fi
Expand Down

0 comments on commit f36664d

Please sign in to comment.