diff options
author | Dan McGee <dan@archlinux.org> | 2007-02-21 07:13:16 +0000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-02-21 07:13:16 +0000 |
commit | 360565662c329f73ba6ff109b560fa5030b0cee2 (patch) | |
tree | 1a2f50019d2260e9d22d41d938c3c7bb6de26e35 | |
parent | 4f9aa100a6ca77cb96370caff2a97d64ceac9afc (diff) | |
download | pacman-360565662c329f73ba6ff109b560fa5030b0cee2.tar.xz |
Fixed up the output a bit.
-rwxr-xr-x | pactest/pmenv.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pactest/pmenv.py b/pactest/pmenv.py index 1665c522..456a8da6 100755 --- a/pactest/pmenv.py +++ b/pactest/pmenv.py @@ -100,16 +100,19 @@ class pmenv: 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 |