Skip to content

Commit

Permalink
fix testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Feb 15, 2021
1 parent af7b471 commit 8251abb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/security_test.rb
Expand Up @@ -241,6 +241,8 @@ def enabled?

describe "#write_kernel_settings" do
before do
# there are some failure with running uname in chroot without root perms
allow(Yast::Report).to receive(:Error)
change_scr_root(File.join(DATA_PATH, "system"))
Security.read_kernel_settings
stub_scr_write
Expand Down Expand Up @@ -520,6 +522,8 @@ def enabled?

describe "#read_kernel_settings" do
before do
# there are some failure with running uname in chroot without root perms
allow(Yast::Report).to receive(:Error)
change_scr_root(File.join(DATA_PATH, "system"))
Security.Settings["kernel.sysrq"] = nil
Security.Settings["net.ipv4.tcp_syncookies"] = nil
Expand Down

0 comments on commit 8251abb

Please sign in to comment.