From 8b58f7218cd8daa01d7729d55fb8a2050f656688 Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Fri, 25 Jun 2021 09:52:50 +0300 Subject: [PATCH] [#1941] fix keactrl test when sysrepo is disabled --- src/bin/keactrl/tests/keactrl_tests.sh.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/bin/keactrl/tests/keactrl_tests.sh.in b/src/bin/keactrl/tests/keactrl_tests.sh.in index 5b4ce7e477..71983e34d7 100644 --- a/src/bin/keactrl/tests/keactrl_tests.sh.in +++ b/src/bin/keactrl/tests/keactrl_tests.sh.in @@ -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