Skip to content

Commit

Permalink
ZOOKEEPER-2948: Failing c unit tests on apache jenkins
Browse files Browse the repository at this point in the history
We need to make sure TestReadOnlyClient only modifies build/tmp/zkdata not
/tmp/zkdata
  • Loading branch information
afine committed Nov 21, 2017
1 parent 851075b commit b66f794
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/c/tests/zkServer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ startReadOnly)
echo "this target is for unit tests only"
exit 2
else
mkdir -p /tmp/zkdata
rm -f /tmp/zkdata/myid && echo 1 > /tmp/zkdata/myid
mkdir -p "${base_dir}/build/tmp/zkdata"
rm -f "${base_dir}/build/tmp/zkdata/myid" && echo 1 > "${base_dir}/build/tmp/zkdata/myid"

# force read-only mode
java -cp "$CLASSPATH" -Dreadonlymode.enabled=true org.apache.zookeeper.server.quorum.QuorumPeerMain ${base_dir}/src/c/tests/quorum.cfg &> "${base_dir}/build/tmp/zk.log" &
Expand Down

0 comments on commit b66f794

Please sign in to comment.