Commit b8e1917f authored by anonym's avatar anonym
Browse files

Grep for fixed string.

Paths often contain . and such that have special meanings when
interpreted as a regex by grep. This is pretty pedantic, of course...
parent a44f2ce0
......@@ -1054,7 +1054,7 @@ When /^AppArmor has (not )?denied "([^"]+)" from opening "([^"]+)"(?: after at m
audit_line = 'apparmor="DENIED" operation="open" profile="%s" name="%s"' %
[profile, file]
block = Proc.new do
cmd = @vm.execute("grep -q '#{audit_line}' /var/log/syslog")
cmd = @vm.execute("grep -qF '#{audit_line}' /var/log/syslog")
assert_equal(expected_cmd_status, cmd.success?)
true
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment