Skip to content

Commit

Permalink
testsuite: set statedir attr for system tests
Browse files Browse the repository at this point in the history
Problem: system tests do not set statedir like systemd unit file.

Set statedir to a subdirectory under $workdir.
  • Loading branch information
garlick committed Apr 26, 2022
1 parent 5f51a2b commit c618d32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/sharness.d/flux-sharness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ make_bootstrap_config() {
local full="0-$(($size-1))"

mkdir $workdir/conf.d
mkdir $workdir/state
flux keygen $workdir/cert
cat >$workdir/conf.d/bootstrap.toml <<-EOT
[bootstrap]
Expand All @@ -121,6 +122,7 @@ make_bootstrap_config() {
echo "--test-start-mode=${TEST_UNDER_FLUX_START_MODE:-all}"
echo "-o,-Stbon.fanout=${TEST_UNDER_FLUX_FANOUT:-$size}"
echo "-o,-Stbon.zmqdebug=1"
echo "-o,-Sstatedir=$workdir/state"
}

#
Expand Down

0 comments on commit c618d32

Please sign in to comment.