diff options
| author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-10-28 09:15:59 (GMT) |
|---|---|---|
| committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-10-28 09:15:59 (GMT) |
| commit | fc40fc34ced4b280e622b57568ce218b0fb36ae2 (patch) | |
| tree | 80532402aa6f50a89c630083ba7acf591688e4ed | |
| parent | 69857a4f326898fc803a1547b8f1e252cc7c9d02 (diff) | |
t/TestLib.pm, check_clean(): Quiesce stderr of netstat
This shows a "Not all processes could be identified" warning in unprivileged
containers on stderr, which makes the tests fail.
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rw-r--r-- | t/TestLib.pm | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 01f6930..ecbab9f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,8 @@ postgresql-common (178) UNRELEASED; urgency=medium [ Martin Pitt ] * debian/supported-versions: Add Ubuntu 17.04. + * t/TestLib.pm, check_clean(): Quiesce stderr of netstat, which shows a "Not + all processes could be identified" warning in unprivileged containers. -- Christoph Berg <christoph.berg@credativ.de> Thu, 13 Oct 2016 15:32:49 +0200 diff --git a/t/TestLib.pm b/t/TestLib.pm index cff97b5..d976092 100644 --- a/t/TestLib.pm +++ b/t/TestLib.pm @@ -242,7 +242,7 @@ sub check_clean { # complain about missing directories ok_dir '/var/log/postgresql', [], "No files in /var/log/postgresql left behind"; - is_program_out 0, 'netstat -avptn | grep ":543[2-9]\\b"', 1, '', + is_program_out 0, 'netstat -avptn 2>/dev/null | grep ":543[2-9]\\b"', 1, '', 'PostgreSQL TCP ports are closed'; } |
