#!/bin/sh

set -e

# Corosync did not start if the test container is unprivileged:
printf 'system.allow_knet_handle_fallback: yes\n' >>/etc/corosync/corosync.conf
service corosync start

OUTPUT="${AUTOPKGTEST_ARTIFACTS:-.}/quorumtool.txt"

corosync-quorumtool >"$OUTPUT"
cat "$OUTPUT"
grep -q ' 1 node1 (local)' "$OUTPUT"
