From 25223d679078dc756bbd8aea46f713259a4365ee Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 26 Feb 2007 08:19:02 +0000 Subject: * 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) --- pactest/pmfile.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'pactest/pmfile.py') 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 @@ def ismodified(self): 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]): -- cgit v1.2.3-54-g00ecf