# HG changeset patch # User Dirkjan Ochtman # Date 1283951975 -7200 # Node ID 045c9e8db0d863ce38d45340dd8f852958af314e # Parent 45e654e10e1b196ae611cc55b3e07cc6d57f3d88 tests: fix test output for test-hgweb-no* tests diff -r 45e654e10e1b -r 045c9e8db0d8 tests/test-hgweb-no-path-info --- a/tests/test-hgweb-no-path-info Wed Sep 08 15:18:33 2010 +0200 +++ b/tests/test-hgweb-no-path-info Wed Sep 08 15:19:35 2010 +0200 @@ -19,11 +19,12 @@ errors = StringIO() input = StringIO() -def startrsp(headers, data): +def startrsp(status, headers): + print '---- STATUS' + print status print '---- HEADERS' print headers print '---- DATA' - print data return output.write env = { diff -r 45e654e10e1b -r 045c9e8db0d8 tests/test-hgweb-no-path-info.out --- a/tests/test-hgweb-no-path-info.out Wed Sep 08 15:18:33 2010 +0200 +++ b/tests/test-hgweb-no-path-info.out Wed Sep 08 15:19:35 2010 +0200 @@ -4,10 +4,11 @@ date: Thu Jan 01 00:00:00 1970 +0000 summary: test ----- HEADERS +---- STATUS 200 Script output follows +---- HEADERS +[('Content-Type', 'application/atom+xml; charset=ascii')] ---- DATA -[('Content-Type', 'application/atom+xml; charset=ascii')] @@ -37,10 +38,11 @@ ---- ERRORS ----- HEADERS +---- STATUS 200 Script output follows +---- HEADERS +[('Content-Type', 'text/plain; charset=ascii')] ---- DATA -[('Content-Type', 'text/plain; charset=ascii')] repo/ diff -r 45e654e10e1b -r 045c9e8db0d8 tests/test-hgweb-no-request-uri --- a/tests/test-hgweb-no-request-uri Wed Sep 08 15:18:33 2010 +0200 +++ b/tests/test-hgweb-no-request-uri Wed Sep 08 15:19:35 2010 +0200 @@ -19,11 +19,12 @@ errors = StringIO() input = StringIO() -def startrsp(headers, data): +def startrsp(status, headers): + print '---- STATUS' + print status print '---- HEADERS' print headers print '---- DATA' - print data return output.write env = { diff -r 45e654e10e1b -r 045c9e8db0d8 tests/test-hgweb-no-request-uri.out --- a/tests/test-hgweb-no-request-uri.out Wed Sep 08 15:18:33 2010 +0200 +++ b/tests/test-hgweb-no-request-uri.out Wed Sep 08 15:19:35 2010 +0200 @@ -4,10 +4,11 @@ date: Thu Jan 01 00:00:00 1970 +0000 summary: test ----- HEADERS +---- STATUS 200 Script output follows +---- HEADERS +[('Content-Type', 'application/atom+xml; charset=ascii')] ---- DATA -[('Content-Type', 'application/atom+xml; charset=ascii')] @@ -37,29 +38,32 @@ ---- ERRORS ----- HEADERS +---- STATUS 200 Script output follows +---- HEADERS +[('Content-Type', 'text/plain; charset=ascii')] ---- DATA -[('Content-Type', 'text/plain; charset=ascii')] -rw-r--r-- 4 bar ---- ERRORS ----- HEADERS +---- STATUS 200 Script output follows +---- HEADERS +[('Content-Type', 'text/plain; charset=ascii')] ---- DATA -[('Content-Type', 'text/plain; charset=ascii')] /repo/ ---- ERRORS ----- HEADERS +---- STATUS 200 Script output follows +---- HEADERS +[('Content-Type', 'text/plain; charset=ascii')] ---- DATA -[('Content-Type', 'text/plain; charset=ascii')] -rw-r--r-- 4 bar diff -r 45e654e10e1b -r 045c9e8db0d8 tests/test-hgweb-non-interactive --- a/tests/test-hgweb-non-interactive Wed Sep 08 15:18:33 2010 +0200 +++ b/tests/test-hgweb-non-interactive Wed Sep 08 15:19:35 2010 +0200 @@ -36,11 +36,12 @@ input = StringIO() output = StringIO() -def startrsp(headers, data): +def startrsp(status, headers): + print '---- STATUS' + print status print '---- HEADERS' print headers print '---- DATA' - print data return output.write env = { diff -r 45e654e10e1b -r 045c9e8db0d8 tests/test-hgweb-non-interactive.out --- a/tests/test-hgweb-non-interactive.out Wed Sep 08 15:18:33 2010 +0200 +++ b/tests/test-hgweb-non-interactive.out Wed Sep 08 15:19:35 2010 +0200 @@ -4,10 +4,11 @@ date: Thu Jan 01 00:00:00 1970 +0000 summary: test ----- HEADERS +---- STATUS 200 Script output follows +---- HEADERS +[('Content-Type', 'text/html; charset=ascii')] ---- DATA -[('Content-Type', 'text/html; charset=ascii')] ---- ERRORS ---- OS.ENVIRON wsgi variables