From 0886ea31befabd24b510fb5b31464268622e111b Mon Sep 17 00:00:00 2001 From: Brian Cox Date: Thu, 31 Aug 2017 21:44:24 -0700 Subject: [PATCH] Tweak a couple of test-harness tests to exclude variable properties like access time, since tests aren't interested in that behavior. --- src/test-harness/tests/integritycheck.pm | 4 ++-- src/test-harness/tests/polupdate.pm | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test-harness/tests/integritycheck.pm b/src/test-harness/tests/integritycheck.pm index 7e8bbac..a7b8159 100644 --- a/src/test-harness/tests/integritycheck.pm +++ b/src/test-harness/tests/integritycheck.pm @@ -35,12 +35,12 @@ sub PolicyFileString # (rulename="RuleA", severity=30, emailto="elvis@mars") { - $root -> \$(ReadOnly)+S; #read only plus SHA-1 + $root -> \$(ReadOnly) +S -ab; #read only plus SHA-1 minus atime & blocks } (rulename="RuleB", severity=200, emailto="elvis@mars") { - $root2 -> \$(ReadOnly)+S; #read only plus SHA-1 + $root2 -> \$(ReadOnly) +S -ab; #read only plus SHA-1 minus atime & blocks } POLICY_END diff --git a/src/test-harness/tests/polupdate.pm b/src/test-harness/tests/polupdate.pm index 4f701a1..bc4a4d1 100644 --- a/src/test-harness/tests/polupdate.pm +++ b/src/test-harness/tests/polupdate.pm @@ -31,8 +31,8 @@ sub PolicyFileString return < \$(ReadOnly)+M; #read only plus MD5 - $root2 -> \$(ReadOnly)+M; #read only plus MD5 + $root1 -> \$(ReadOnly) +M -ab; #read only plus MD5 minus atime & blocks + $root2 -> \$(ReadOnly) +M -ab; #read only plus MD5 minus atime & blocks POLICY_END @@ -46,8 +46,8 @@ sub PolicyFileStringNew return < \$(ReadOnly)+S; #read only plus SHA1 - $root3 -> \$(ReadOnly)+S; #read only plus SHA1 + $root1 -> \$(ReadOnly) +S -ab; #read only plus SHA1 minus atime & blocks + $root3 -> \$(ReadOnly) +S -ab; #read only plus SHA1 minus atime & blocks POLICY_END