[Rt-commit] rt branch, 4.4/test-fail-content-dump, repushed

Shawn Moore shawn at bestpractical.com
Fri Dec 4 11:35:55 EST 2015


The branch 4.4/test-fail-content-dump was deleted and repushed:
       was 4cc28cdec9d71ada810fc6dc387bfda35452dd11
       now d39d56baf4e931c43c06f4932fae406bb5c816e5

1:  8d449b6 ! 1:  d39d56b On content_* or text_* fails, dump content in tmp
    @@ -26,11 +26,13 @@
     +        if (!$ok) {
     +            my $dir = RT::Test->temp_directory;
     +            my ($name) = $self->uri =~ m{/([^/]+)$};
    ++            $name ||= 'index.html';
    ++
     +            my $file = $dir . '/' . RT::Test->builder->current_test . '-' . $name;
     +
    -+            open my $handle, '>', $file or die $@;
    -+            print $handle $self->content or die $@;
    -+            close $handle or die $@;
    ++            open my $handle, '>', $file or die $!;
    ++            print $handle $self->content or die $!;
    ++            close $handle or die $!;
     +
     +            Test::More::diag("Dumped failing test page content to $file");
     +        }
    @@ -44,4 +46,3 @@
      sub DESTROY {
          my $self = shift;
      
    -
2:  66f6111 < -:  ------- If the regex fails to match, the request was for / so sub in index.html
3:  4cc28cd < -:  ------- Use the right error var, oops



More information about the rt-commit mailing list