Changeset 20a20df in mod_gnutls for test/runtests


Ignore:
Timestamp:
Nov 1, 2019, 5:21:04 PM (5 weeks ago)
Author:
Krista Karppinen <krista.celestia@…>
Branches:
master
Children:
c6987c6
Parents:
a55742a
git-author:
Krista Karppinen <krista.celestia@…> (11/01/19 17:07:20)
git-committer:
Krista Karppinen <krista.celestia@…> (11/01/19 17:21:04)
Message:

Test suite: ignore "Content-Length" header

Do not check the returned "Content-Length" header value when running the
tests, as long as it's valid. This will allow for more flexibility in
matching the content in the future.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtests

    ra55742a r20a20df  
    5050# Compare expected/actual outputs, filtering out headers from actual
    5151# output that are expected to change between runs or builds (currently
    52 # "Date" and "Server"). The headers must be excluded in the expected
    53 # output.
     52# "Date", "Server" and "Content-Length"). The headers must be excluded
     53# in the expected output.
    5454#
    5555# Parameters:
     
    6464        grep -v -P '^Date:\s.*GMT\s?$' | \
    6565        grep -v -P '^Server:\sApache'  | \
     66        grep -v -P '^Content-Length:\s\d+\s?$' | \
    6667        tail -n "$(wc -l < ${expected})" )
    6768}
Note: See TracChangeset for help on using the changeset viewer.