diff options
author | Aaron Griffin <aaron@archlinux.org> | 2007-02-26 08:19:02 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-02-26 08:19:02 +0000 |
commit | 25223d679078dc756bbd8aea46f713259a4365ee (patch) | |
tree | f9775e7ac9e2f259d8dc4b2f86434264498276ba /pactest/pmfile.py | |
parent | 4a75e42f124929d5e4d0d2e3f35869747227ba5f (diff) | |
download | pacman-25223d679078dc756bbd8aea46f713259a4365ee.tar.xz |
* corrected (IMO) --debug usage with pactest. --debug is now passed straight
through to pacman, whereas --verbose affects the pactest output - this cleans
up the standard test output significantly
* sorted tests a bit better, sectioning off failed tests AFTER successful tests,
to make it easier to see what failed at a glance
* added a 'testname' member to pmtest, which strips path info (cleaner output)
Diffstat (limited to 'pactest/pmfile.py')
-rwxr-xr-x | pactest/pmfile.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pactest/pmfile.py b/pactest/pmfile.py index 597c0992..71a0cd7c 100755 --- a/pactest/pmfile.py +++ b/pactest/pmfile.py @@ -48,10 +48,9 @@ class pmfile: checksum = getmd5sum(filename) mtime = getmtime(filename) - if debug: - print "ismodified(%s)" % self.name - print "old: %s / %s" % (self.checksum, self.mtime) - print "new: %s / %s" % (checksum, mtime) + vprint("\tismodified(%s)" % self.name) + vprint("\t\told: %s / %s" % (self.checksum, self.mtime)) + vprint("\t\tnew: %s / %s" % (checksum, mtime)) if not self.checksum == checksum \ or not (self.mtime[1], self.mtime[2]) == (mtime[1], mtime[2]): |