]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1941] fix keactrl test when sysrepo is disabled
authorAndrei Pavel <andrei@isc.org>
Fri, 25 Jun 2021 06:52:50 +0000 (09:52 +0300)
committerAndrei Pavel <andrei@isc.org>
Fri, 25 Jun 2021 07:48:57 +0000 (10:48 +0300)
src/bin/keactrl/tests/keactrl_tests.sh.in

index 5b4ce7e477cd6c20d8c334acc20c24891b6684a6..71983e34d7cde608c2b332031d450f37643c7ccf 100644 (file)
@@ -523,9 +523,13 @@ keactrl_status_test() {
 'DHCPv4 server: inactive
 DHCPv6 server: inactive
 DHCP DDNS: inactive
-Control Agent: inactive
-Netconf agent: inactive' \
-  "$(printf '%s\n' "${OUTPUT}" | head -n 5)"
+Control Agent: inactive' \
+  "$(printf '%s\n' "${OUTPUT}" | head -n 4)"
+
+  if "${have_netconf}"; then
+    assert_str_eq 'Netconf agent: inactive' \
+      "$(printf '%s\n' "${OUTPUT}" | head -n 5 | tail -n 1)"
+  fi
 }
 
 # Test that a simple "keactrl status" without a configuration file works in two