~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/dbqp.py

  • Committer: Lee Bieber
  • Date: 2011-02-10 18:34:13 UTC
  • mfrom: (2151.8.3 dbqp_fixes)
  • mto: This revision was merged to the branch mainline in revision 2155.
  • Revision ID: kalebral@gmail.com-20110210183413-bykzel58bzkzzekm
Merge Patrick - 715885: dbqp needs to return non-zero if tests fail

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
    if server_manager and not variables['startandexit']:
85
85
        server_manager.cleanup()
86
86
 
 
87
    if not variables['startandexit']:
 
88
        if test_manager:
 
89
            fail_count = test_manager.has_failing_tests()
 
90
            sys.exit(test_manager.has_failing_tests())
 
91
        else:
 
92
            # return 1 as we likely have a problem if we don't have a
 
93
            # test_manager
 
94
            sys.exit(1)
 
95