diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-09-09 04:55:26 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-09-09 04:55:26 -0400 |
commit | 9a37ba54d1bf2bf93fa14dbc6a9d092bd1f5e70c (patch) | |
tree | 794ded24045c0a1667eb923c6745bbda95aba2cc /tests | |
parent | f99cb7d7ab98117fb757430ea9651d4015f180b2 (diff) | |
download | lighttpd-git-9a37ba54d1bf2bf93fa14dbc6a9d092bd1f5e70c.tar.gz |
[tests] skip time-sensitive test during CI testing
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/mod-fastcgi.t | 12 | ||||
-rwxr-xr-x | tests/mod-scgi.t | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/mod-fastcgi.t b/tests/mod-fastcgi.t index c904d860..25016e60 100755 --- a/tests/mod-fastcgi.t +++ b/tests/mod-fastcgi.t @@ -189,11 +189,23 @@ EOF ok($tf->handle_http($t) == 0, 'SCRIPT_NAME (wsgi)'); + # skip timing-sensitive test during CI testing, but run for user 'gps' + my $user = `id -un`; + chomp($user) if $user; + if (($user || "") eq "gps") { $t->{REQUEST} = ( <<EOF GET /index.fcgi?die-at-end HTTP/1.0 Host: www.example.org EOF ); + } + else { + $t->{REQUEST} = ( <<EOF +GET /index.fcgi?crlf HTTP/1.0 +Host: www.example.org +EOF + ); + } $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'test123' } ]; ok($tf->handle_http($t) == 0, 'killing fastcgi and wait for restart'); diff --git a/tests/mod-scgi.t b/tests/mod-scgi.t index f263f556..50b3a750 100755 --- a/tests/mod-scgi.t +++ b/tests/mod-scgi.t @@ -71,11 +71,23 @@ EOF ok($tf->handle_http($t) == 0, 'SCRIPT_NAME (wsgi)'); + # skip timing-sensitive test during CI testing, but run for user 'gps' + my $user = `id -un`; + chomp($user) if $user; + if (($user || "") eq "gps") { $t->{REQUEST} = ( <<EOF GET /index.scgi?die-at-end HTTP/1.0 Host: www.example.org EOF ); + } + else { + $t->{REQUEST} = ( <<EOF +GET /index.scgi?crlf HTTP/1.0 +Host: www.example.org +EOF + ); + } $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'test123' } ]; ok($tf->handle_http($t) == 0, 'killing scgi and wait for restart'); |