diff options
Diffstat (limited to 'test/pacman/pmrule.py')
-rw-r--r-- | test/pacman/pmrule.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/pacman/pmrule.py b/test/pacman/pmrule.py index 3bcac86a..f8991fd0 100644 --- a/test/pacman/pmrule.py +++ b/test/pacman/pmrule.py @@ -120,6 +120,12 @@ class pmrule(object): if not (os.path.isfile(filename) and os.path.getsize(filename) == 0): success = 0 + elif case == "CONTENTS": + try: + with open(filename, 'r') as f: + success = f.read() == value + except: + success = 0 elif case == "MODIFIED": for f in test.files: if f.name == key: |