[pacman-dev] CVS update of pacman-lib/pactest (pmenv.py)
dan at archlinux.org
dan at archlinux.org
Wed Feb 21 02:13:16 EST 2007
Date: Wednesday, February 21, 2007 @ 02:13:16
Author: dan
Path: /home/cvs-pacman/pacman-lib/pactest
Modified: pmenv.py (1.2 -> 1.3)
Fixed up the output a bit.
----------+
pmenv.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
Index: pacman-lib/pactest/pmenv.py
diff -u pacman-lib/pactest/pmenv.py:1.2 pacman-lib/pactest/pmenv.py:1.3
--- pacman-lib/pactest/pmenv.py:1.2 Wed Feb 21 01:33:13 2007
+++ pacman-lib/pactest/pmenv.py Wed Feb 21 02:13:16 2007
@@ -100,16 +100,19 @@
passed += 1
else:
print "[FAILED]",
- print test.name.strip(".py").ljust(38),
+ print test.name.strip(".py").ljust(33),
print "Rules:",
- print " OK = %2u FAIL = %2u SKIP = %2u" % (success, fail, rules-(success+fail))
+ print "OK = %2u FAIL = %2u SKIP = %2u" % \
+ (success, fail, rules - (success + fail))
print "----------"*8
total = len(self.testcases)
failed = total - passed
print "TOTAL = %3u" % total
if total:
- print "PASSED = %3u (%6.2f%%)" % (passed, float(passed)*100/total)
- print "FAILED = %3u (%6.2f%%)" % (failed, float(failed)*100/total)
+ print "PASSED = %3u (%6.2f%%)" % \
+ (passed, float(passed) * 100 / total)
+ print "FAILED = %3u (%6.2f%%)" % \
+ (failed, float(failed) * 100 / total)
print
More information about the pacman-dev
mailing list