예제 #1
0
    def __run_test(self, program_path, test_command, working_dir):
        process_stdout = ProcessStdout(stdout_from_program(program_path))
        process_stderr = ProcessStderr(stderr_from_program(program_path))

        return_code = IncrementalSubProcess.Popen2(process_stdout,
                                                   process_stderr,
                                                   shlex.split(test_command),
                                                   cwd=working_dir)
        return return_code
예제 #2
0
    def _run_test( self, program_path, test_command, working_dir,branch_root, notifier ):
        process_stdout = ProcessStdout( stdout_file_name_from( program_path ), branch_root, notifier )
        process_stderr = ProcessStderr( stderr_file_name_from( program_path ), notifier )

        return_code = IncrementalSubProcess.Popen2( process_stdout,
                                                    process_stderr,
                                                    shlex.split( test_command ),
                                                    cwd=working_dir )

        return return_code, process_stdout.tests()
예제 #3
0
    def __run_test( self, program_path, test_command, working_dir, notifier, preprocess, env ):
        process_stdout = ProcessStdout( stdout_file_name_from( program_path ), notifier, preprocess )
        process_stderr = ProcessStderr( stderr_file_name_from( program_path ), notifier, preprocess )

        return_code = IncrementalSubProcess.Popen2( process_stdout,
                                                    process_stderr,
                                                    shlex.split( test_command ),
                                                    cwd=working_dir,
                                                    scons_env=env )

        return return_code, process_stdout.tests()
예제 #4
0
    def _run(self, suppress_output, program_path, command, working_dir, env):
        process_stdout = ProcessStdout(not suppress_output,
                                       stdout_file_name_from(program_path))
        process_stderr = ProcessStderr(not suppress_output,
                                       stderr_file_name_from(program_path))

        return_code = IncrementalSubProcess.Popen2(process_stdout,
                                                   process_stderr,
                                                   shlex.split(command),
                                                   cwd=working_dir,
                                                   scons_env=env)
        return return_code
예제 #5
0
    def _run_test(self, test_case, show_test_output, program_path,
                  test_command, working_dir, env):
        process_stdout = ProcessStdout(test_case, show_test_output,
                                       stdout_file_name_from(program_path))
        process_stderr = ProcessStderr(test_case, show_test_output,
                                       stderr_file_name_from(program_path))

        return_code = IncrementalSubProcess.Popen2(process_stdout,
                                                   process_stderr,
                                                   shlex.split(test_command),
                                                   cwd=working_dir,
                                                   scons_env=env)
        return return_code