summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-07-03 19:48:09 +0200
committerMichal Minar <miminar@redhat.com>2013-07-10 07:38:23 +0200
commit5fa1202caa877ab87e195403cdbd33a8643c8e80 (patch)
treef22f238d9b7480e4a018ca5e208c30886d44bb70 /src
parentb37009fc9f7a0d06dabb0c4ea91f82ff6dc2f014 (diff)
downloadopenlmi-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')
-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))