Skip to content

Commit

Permalink
Fixed old testsuite not depending on named service and bind package i…
Browse files Browse the repository at this point in the history
…n test mode.
  • Loading branch information
teclator committed Jul 1, 2019
1 parent 1633830 commit d0e0f94
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions package/yast2-dhcp-server.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jul 1 16:18:15 UTC 2019 - Knut Anderssen <kanderssen@suse.com>

- Fixed failing old testsuite: do not depend on the environment,
skip bind absence in Mode.test() (bsc#1138668)
- 4.2.1

-------------------------------------------------------------------
Fri May 31 12:28:42 UTC 2019 - Stasiek Michalski <hellcp@mailbox.org>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-dhcp-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-dhcp-server
Version: 4.2.0
Version: 4.2.1
Release: 0
Summary: YaST2 - DHCP Server Configuration
Group: System/YaST
Expand Down
4 changes: 2 additions & 2 deletions src/modules/DhcpServer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,7 @@ configured yet. Create a new configuration?");

Progress->NextStage ();

$dns_server_available = DnsServerAPI->IsServiceConfigurableExternally();
$dns_server_available = (!Mode->test () && DnsServerAPI->IsServiceConfigurableExternally());
if ($dns_server_available) {
DnsServerAPI->Read();
}
Expand Down Expand Up @@ -1656,7 +1656,7 @@ sub Write {

my $ok = 1;

$modified = $modified || FirewalldWrapper->is_modified ();
$modified = $modified || (!Mode->test () && FirewalldWrapper->is_modified ());

if (! $modified)
{
Expand Down

0 comments on commit d0e0f94

Please sign in to comment.