diff options
author | Michal Minar <miminar@redhat.com> | 2013-07-03 19:48:09 +0200 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-07-10 07:38:23 +0200 |
commit | 5fa1202caa877ab87e195403cdbd33a8643c8e80 (patch) | |
tree | f22f238d9b7480e4a018ca5e208c30886d44bb70 /src/software/test/test_software_identity_file_check.py | |
parent | b37009fc9f7a0d06dabb0c4ea91f82ff6dc2f014 (diff) | |
download | openlmi-providers-5fa1202caa877ab87e195403cdbd33a8643c8e80.tar.gz openlmi-providers-5fa1202caa877ab87e195403cdbd33a8643c8e80.tar.xz openlmi-providers-5fa1202caa877ab87e195403cdbd33a8643c8e80.zip |
software: do not check symlink's file mode in tests
Diffstat (limited to 'src/software/test/test_software_identity_file_check.py')
-rwxr-xr-x | src/software/test/test_software_identity_file_check.py | 7 |
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)) |