summaryrefslogtreecommitdiff
path: root/pactest
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-03-01 19:07:38 +0000
committerDan McGee <dan@archlinux.org>2007-03-01 19:07:38 +0000
commitefca1cc0106fd4b1eea795b6ff8ae208e1196042 (patch)
tree6fe6a4b5689a5d239ffb568a673c17b6cc66caf7 /pactest
parentca139e985017652fa1d25b2ff8ac4a8ebbe4c648 (diff)
* Modified values of INFRQ_* options so we start at 0x01 and not 0x00. This
allows for the same bit operators to be used across the board on pkg_get operations. * Changed name of INFRQ_NONE -> INFRQ_BASE to more clearly reflect what it does (loads pkg name and version). * Added a few missing things on package functions, such as SYMEXPORT and ALPM_LOG_FUNC. * Slight updates to pmenv to print 'pass' and 'fail' instead of 'passed' and 'failed'. Keeps output a bit more concise. * Fixed a doxygen comment spelling error. :P
Diffstat (limited to 'pactest')
-rwxr-xr-xpactest/pmenv.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pactest/pmenv.py b/pactest/pmenv.py
index 56af2e9a..bff32e98 100755
--- a/pactest/pmenv.py
+++ b/pactest/pmenv.py
@@ -80,9 +80,9 @@ class pmenv:
t.check()
print "==> Test result"
if t.result["fail"] == 0:
- print "\tPASSED"
+ print "\tPASS"
else:
- print "\tFAILED"
+ print "\tFAIL"
print
def results(self):
@@ -104,16 +104,16 @@ class pmenv:
fail = test.result["fail"]
rules = len(test.rules)
if fail == 0:
- result = "[PASSED]"
+ result = "[PASS]"
else:
- result = "[FAILED]"
+ result = "[FAIL]"
print result,
print "%s Rules: OK = %2u FAIL = %2u SKIP = %2u" \
- % (test.testname.ljust(32), success, fail, \
+ % (test.testname.ljust(34), success, fail, \
rules - (success + fail))
if fail != 0:
# print test description if test failed
- print " ", test.description
+ print " ", test.description
print "=========="*8
print "Results"
@@ -125,10 +125,10 @@ class pmenv:
total = len(self.testcases)
failed = total - passed
- print "TOTAL = %3u" % total
+ 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 "PASS = %3u (%6.2f%%)" % (passed, float(passed) * 100 / total)
+ print "FAIL = %3u (%6.2f%%)" % (failed, float(failed) * 100 / total)
print ""
if __name__ == "__main__":