summaryrefslogtreecommitdiffstats
path: root/test/pacman/pmrule.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/pacman/pmrule.py')
-rw-r--r--test/pacman/pmrule.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pacman/pmrule.py b/test/pacman/pmrule.py
index ba94ab8c..a91741be 100644
--- a/test/pacman/pmrule.py
+++ b/test/pacman/pmrule.py
@@ -112,6 +112,10 @@ class pmrule(object):
if case == "EXIST":
if not os.path.isfile(filename):
success = 0
+ elif case == "EMPTY":
+ if not (os.path.isfile(filename)
+ and os.path.getsize(filename) == 0):
+ success = 0
elif case == "MODIFIED":
for f in test.files:
if f.name == key: