Skip to content

Commit

Permalink
ctdb-tests: Update local daemons tests to use CTDB_NOSETSCHED
Browse files Browse the repository at this point in the history
... instead of --nosetsched command-line option.

Signed-off-by: Amitay Isaacs <[email protected]>
Reviewed-by: Michael Adam <[email protected]>

Autobuild-User(master): Michael Adam <[email protected]>
Autobuild-Date(master): Mon Jun 20 20:22:57 CEST 2016 on sn-devel-144
  • Loading branch information
amitay authored and obnoxxx committed Jun 20, 2016
1 parent fc7e863 commit 7d9a876
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ctdb/tests/simple/scripts/local_daemons.bash
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ daemons_stop ()
echo "Sleeping for a while..."
sleep_for 1

local pat="ctdbd --sloppy-start --nopublicipcheck --nosetsched"
local pat="ctdbd --sloppy-start --nopublicipcheck"
if pgrep -f "$pat" >/dev/null ; then
echo "Killing remaining daemons..."
pkill -f "$pat"
Expand Down Expand Up @@ -129,6 +129,7 @@ CTDB_DBDIR_PERSISTENT="${TEST_VAR_DIR}/test.db/persistent"
CTDB_DBDIR_STATE="${TEST_VAR_DIR}/test.db/state"
CTDB_PUBLIC_ADDRESSES="${public_addresses}"
CTDB_SOCKET="${TEST_VAR_DIR}/sock.$pnn"
CTDB_NOSETSCHED=yes
EOF

# Override from the environment. This would be easier if env was
Expand All @@ -138,8 +139,8 @@ EOF
sed -e 's@=\([^"]\)@="\1@' -e 's@[^"]$@&"@' -e 's@="$@&"@' >>"$conf"

# We'll use "pkill -f" to kill the daemons with
# "ctdbd --sloppy-start --nopublicipcheck --nosetsched" as context.
CTDBD="${VALGRIND} ctdbd --sloppy-start --nopublicipcheck --nosetsched" \
# "ctdbd --sloppy-start --nopublicipcheck" as context.
CTDBD="${VALGRIND} ctdbd --sloppy-start --nopublicipcheck" \
CTDBD_CONF="$conf" \
ctdbd_wrapper "$pidfile" start
}
Expand Down

0 comments on commit 7d9a876

Please sign in to comment.