summaryrefslogtreecommitdiffstats
path: root/src/software/test/test_software_identity_file_check.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/software/test/test_software_identity_file_check.py')
-rwxr-xr-xsrc/software/test/test_software_identity_file_check.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/software/test/test_software_identity_file_check.py b/src/software/test/test_software_identity_file_check.py
index ab7accf..69c942a 100755
--- a/src/software/test/test_software_identity_file_check.py
+++ b/src/software/test/test_software_identity_file_check.py
@@ -318,9 +318,10 @@ class TestSoftwareIdentityFileCheck(
for prop in ( "FileType", "UserID", "GroupID"
, "FileMode", "FileSize", "LinkTarget"
, "FileChecksum", "FileModeFlags"):
- if ( ( os.path.islink(filepath)
- or (not os.path.isfile(filepath)))
- and prop == "FileSize"):
+ if ( ( ( os.path.islink(filepath)
+ or (not os.path.isfile(filepath)))
+ and prop == "FileSize")
+ or (os.path.islink(filepath) and prop == "FileMode")):
continue
self.assertEqual(inst[prop+"Original"], inst[prop],
"%s should match for %s:%s"%(prop, pkg.name, filepath))