From 5fa1202caa877ab87e195403cdbd33a8643c8e80 Mon Sep 17 00:00:00 2001 From: Michal Minar Date: Wed, 3 Jul 2013 19:48:09 +0200 Subject: software: do not check symlink's file mode in tests --- src/software/test/test_software_identity_file_check.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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)) -- cgit