Skip to content

Commit

Permalink
test: fix banner for offline tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erig0 committed Mar 12, 2021
1 parent 52366bd commit 2834d38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/tests/cli/firewall-offline-cmd.at
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
AT_BANNER([firewall-offline-cmd])
m4_define([FIREWALL_BACKEND], [offline])

dnl !!! DO NOT ADD TESTS HERE !!!
dnl
Expand Down
2 changes: 2 additions & 0 deletions src/tests/dbus/dbus.at
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
AT_BANNER([dbus])
dnl use the default backend for dbus tests
m4_define([FIREWALL_BACKEND], [nftables])
m4_include([dbus/firewalld.conf.at])
m4_include([dbus/service.at])
m4_include([dbus/zone_permanent_signatures.at])
Expand Down
6 changes: 1 addition & 5 deletions src/tests/functions.at
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ m4_define([FWD_RESTART], [

m4_define([FWD_START_TEST], [
AT_SETUP([$1])
AT_KEYWORDS(FIREWALL_BACKEND)

dnl We test some unicode strings and autotest overrides LC_ALL=C, so set it
dnl again for every test.
Expand All @@ -104,12 +105,7 @@ m4_define([FWD_START_TEST], [
fi

m4_ifdef([TESTING_FIREWALL_OFFLINE_CMD], [
AT_KEYWORDS(offline)
], [
m4_define_default([FIREWALL_BACKEND], [nftables])

AT_KEYWORDS(FIREWALL_BACKEND)

dnl set the appropriate backend
AT_CHECK([sed -i 's/^FirewallBackend.*/FirewallBackend=FIREWALL_BACKEND/' ./firewalld.conf])

Expand Down

0 comments on commit 2834d38

Please sign in to comment.