Skip to content

Commit

Permalink
tests: Fix syslog test
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Oct 11, 2023
1 parent 6c9eb5a commit 1a213b3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/suites/syslog.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
test_syslog_socket() {
INCUS_DIR=$(mktemp -d -p "${TEST_DIR}" XXX)
export INCUS_DIR
chmod +x "${INCUS_DIR}"
spawn_incus "${INCUS_DIR}" true

incus config set core.syslog_socket=true
incus monitor --type=network-acl > "${TEST_DIR}/ovn.log" &
monitorOVNPID=$!
Expand All @@ -17,5 +12,5 @@ test_syslog_socket() {
grep -qF "type: network-acl" "${TEST_DIR}/ovn.log"
grep -qF "name=\"some-acl\"" "${TEST_DIR}/ovn.log"

shutdown_incus "${INCUS_DIR}"
incus config unset core.syslog_socket
}

0 comments on commit 1a213b3

Please sign in to comment.