Applied: http://bugzilla.mkgnu.net/show_bug.cgi?id=547#c69
On Wed, 2007-10-10 at 03:58 -0700, Robert Hudson wrote:
> And now with the attachment!
>
>
>
> Hi Kristis,
>
> I have now written and tested the auto-bug resolution support for Test
> Director.
>
> There is a new Test Director config file (attached)
>
>
> Changes to TestDirector.pm
> ==========================
>
> Implementation of function integration_change_bug_resolution():
>
> sub integration_change_bug_resolution {
> my $self = shift;
> my ( $bugid, $username, $status, $resolution,
> $resolution_data ) = ( @_ );
>
> my $tags = $self->td_bug_status_tag();
>
> my $cmd_line = $self->build_command_line( $bugid,
> "update_bug_details", $tags );
>
> $cmd_line .= " Y \"" . $status . "\"";
>
> # Make the Test Director request
> open( TD_COMMAND, $cmd_line . " |" );
> # Cygwin has a problem with newlines
> binmode( TD_COMMAND, ":crlf" );
>
> # Check if there was an error
> my $error_message = <TD_COMMAND>;
>
> close ( TD_COMMAND );
>
> if( "$error_message" ne "" ) {
> return 1, $error_message;
> }
> return 0;
> }
>
>
> And that's it, pretty simple.
>
> Hope that helps
>
> Rob
>
>
>
> _______________________________________________
> scmbug-users mailing list
> [email protected]
> http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
signature.asc
Description: This is a digitally signed message part
_______________________________________________ scmbug-users mailing list [email protected] http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
