#NEWLINE# def get_test_runners( args ) : #NEWLINE# #INDENT# res = list ( ) #NEWLINE# qitest_jsons = ( args . qitest_jsons or list ( ) ) #NEWLINE# test_runner = get_test_runner ( args ) #NEWLINE# if test_runner : #NEWLINE# #INDENT# res . append ( known_cwds ) #NEWLINE# #UNINDENT# for qitest_json in qitest_jsons : #NEWLINE# #INDENT# test_runner = get_test_runner ( args , qitest_json = qitest_json ) #NEWLINE# res . append ( test_runner ) #NEWLINE# #UNINDENT# build_projects_runners = parse_build_projects ( args ) #NEWLINE# known_cwds = [ x . cwd for x in res ] #NEWLINE# for test_runner in build_projects_runners : #NEWLINE# #INDENT# if ( not ( test_runner . cwd in known_cwds ) ) : #NEWLINE# #INDENT# res . append ( test_runner ) #NEWLINE# #UNINDENT# #UNINDENT# if ( args . coverage and ( not build_projects_runners ) ) : #NEWLINE# #INDENT# raise qisys . error . Error ( '--coverage can only be used from a qibuild CMake project\n' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if args . coverage : #NEWLINE# #INDENT# return build_projects_runners #NEWLINE# #UNINDENT# #UNINDENT# if ( not res ) : #NEWLINE# #INDENT# raise qisys . error . Error ( 'Nothing found to test' ) #NEWLINE# #UNINDENT# return res