diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-11-24 12:14:39 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-11-25 00:15:13 +0100 |
commit | e1ae0531bfad0fce8590c26d1e38825df22d812a (patch) | |
tree | 54b648fe14a8d64778f2fc01050543a31f6c45f8 /test/integration/test-apt-update-hashsum-mismatch | |
parent | 0123ce7171b09ead5a07567fbd33c53f609f6560 (diff) |
optional write aptwebserver log to client specific files
The test test-handle-redirect-as-used-mirror-change serves multiple
clients at the same time, so the order of the output is undefined and
once in a while the two clients will intermix their lines causing the
grep we perform on it later to fail making our tests fail.
Solved by introducing client-specific logfiles which we all grep and
sort the result to have the results more stable.
Git-Dch: Ignore
Diffstat (limited to 'test/integration/test-apt-update-hashsum-mismatch')
-rwxr-xr-x | test/integration/test-apt-update-hashsum-mismatch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/test-apt-update-hashsum-mismatch b/test/integration/test-apt-update-hashsum-mismatch index f3f6a4236..4d4c33286 100755 --- a/test/integration/test-apt-update-hashsum-mismatch +++ b/test/integration/test-apt-update-hashsum-mismatch @@ -27,7 +27,7 @@ testsuccess aptget update testsuccess aptcache show foo testsuccess aptget install foo -s -for get in $(sed -n 's#^GET /\([^ ]\+\.gz\) HTTP.\+$#\1#p' aptarchive/webserver.log); do +for get in $(sed -n 's#^GET /\([^ ]\+\.gz\) HTTP.\+$#\1#p' aptarchive/webserver.log.client*.log); do msgmsg 'Test hashsum mismatch with file' "$get" rm -rf rootdir/var/lib/apt/lists webserverconfig 'aptwebserver::overwrite' '' |