aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-09-04 02:02:42 +0000
committerlloyd <[email protected]>2006-09-04 02:02:42 +0000
commit3d87bbc9edf36d5fa3ef6f827e88cb13d0fefcd3 (patch)
treec778c0c2c0b695c470b3dcce0616bd75ce280240 /misc
parent8e097c366a383b2b3a554c9b0bc289060b6e6157 (diff)
Use formatted I/O to make the output a little easier to read
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/python/nisttest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/python/nisttest.py b/misc/python/nisttest.py
index c1131d2b0..446c42625 100755
--- a/misc/python/nisttest.py
+++ b/misc/python/nisttest.py
@@ -27,13 +27,13 @@ def run_test(files, rootdir, testname, expected):
end_entity = [x for x in certs if x.find("End Cert") != -1]
ca_certs = [x for x in certs if x.find("Trust Anchor") != -1]
- print "Running", testname, "...",
+ print "%s..." % testname,
result = validate(ca_certs, certs, crls, end_entity)
result = repr(result).replace('botan._botan.verify_result.', '')
if result != expected:
- print "FAILED: got", result, "expected", expected
+ print "FAILED: got %s, expected %s" % (result, expected)
else:
print "passed"
@@ -55,7 +55,7 @@ def main():
if thistest in results:
run_test(files, root, thistest, results[thistest])
else:
- print "Skipping", thistest, "- no expected result set"
+ print "%s... skipping - no expected result set" % thistest
if __name__ == "__main__":
sys.exit(main())