Changes in test/utest_sasview.py [aaf5e49:959eb01] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/utest_sasview.py
raaf5e49 r959eb01 1 1 #!/usr/bin/env python 2 from __future__ import print_function3 4 2 import os 5 3 import subprocess … … 82 80 if has_failed: 83 81 failed += 1 84 print ("Result for %s (%s): FAILED" % (module_name, module_dir))85 print (std_out)82 print "Result for %s (%s): FAILED" % (module_name, module_dir) 83 print std_out 86 84 else: 87 85 passed += 1 88 print ("Result for %s: SUCCESS" % module_name)86 print "Result for %s: SUCCESS" % module_name 89 87 90 print ("\n----------------------------------------------")88 print "\n----------------------------------------------" 91 89 if n_tests == 0: 92 print ("No tests.")90 print "No tests." 93 91 else: 94 print ("Results by test modules:")95 print (" PASSED: %d" % passed)92 print "Results by test modules:" 93 print " PASSED: %d" % passed 96 94 ratio = 100.0*failed/(failed+passed) 97 print (" FAILED: %d (%.0f%%)" % (failed,ratio))95 print " FAILED: %d (%.0f%%)" % (failed,ratio) 98 96 99 print ("Results by tests:")100 print (" Tests run: %d" % n_tests)101 print (" Tests failed: %d" % n_failures)102 print (" Test errors: %d" % n_errors)103 print ("----------------------------------------------")97 print "Results by tests:" 98 print " Tests run: %d" % n_tests 99 print " Tests failed: %d" % n_failures 100 print " Test errors: %d" % n_errors 101 print "----------------------------------------------" 104 102 105 103 return failed
Note: See TracChangeset
for help on using the changeset viewer.