Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/pactest/pmrule.py
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-03-05 18:06:12 +0000
committerAaron Griffin <aaron@archlinux.org>2007-03-05 18:06:12 +0000
commit2caadb33bf60167401f7dd316e704bc42e32a1a9 (patch)
treed7c349246b591073b91a5b6635503cfafda3bd52 /pactest/pmrule.py
parent714a414e72591f3273583cb4970e1515c94e5887 (diff)
* Fixed an issue with globbing the --test argument
* Added a custom 'mkdir' function which makes parents and doesn't fail on existence * Added output for 'SKIP' messages (it did not indicate WHY it was skipped) * Added the ability to generate DB packages in the sync dir (not the cache dir) for testing downloading. (self.cachepkgs = False) * Added pmtest.path for the full path to the package file
Diffstat (limited to 'pactest/pmrule.py')
-rwxr-xr-xpactest/pmrule.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pactest/pmrule.py b/pactest/pmrule.py
index dc04cf1a..886ac545 100755
--- a/pactest/pmrule.py
+++ b/pactest/pmrule.py
@@ -57,6 +57,7 @@ class pmrule:
if not grep(os.path.join(root, LOGFILE), key):
success = 0
else:
+ print "PACMAN rule '%s' not found" % case
success = -1
elif kind == "PKG":
newpkg = localdb.db_read(key)
@@ -100,6 +101,7 @@ class pmrule:
if not found:
success = 0
else:
+ print "PKG rule '%s' not found" % case
success = -1
elif kind == "FILE":
filename = os.path.join(root, key)
@@ -122,8 +124,10 @@ class pmrule:
if not os.path.isfile("%s%s" % (filename, PM_PACSAVE)):
success = 0
else:
+ print "FILE rule '%s' not found" % case
success = -1
else:
+ print "Rule kind '%s' not found" % kind
success = -1
if self.false and success != -1: