summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-04-23 23:00:05 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-04-29 14:41:03 +0200
commitffb72d9f9da27c7767849e669fe8e2ef365bdda2 (patch)
treed8f6d730e51041ec528cf33ddbe740ed4b533f4c
parent71e0694ff91cdfc214a23ab2e5fb7014a0bbe295 (diff)
downloadurpmi-ffb72d9f9da27c7767849e669fe8e2ef365bdda2.tar
urpmi-ffb72d9f9da27c7767849e669fe8e2ef365bdda2.tar.gz
urpmi-ffb72d9f9da27c7767849e669fe8e2ef365bdda2.tar.bz2
urpmi-ffb72d9f9da27c7767849e669fe8e2ef365bdda2.tar.xz
urpmi-ffb72d9f9da27c7767849e669fe8e2ef365bdda2.zip
do not fork (daemonize is implied by {setsid})
Thus fixing killing simple-httpd when test completes, which was broken since basically forever. This prevents dummy testsuite faillures when performing parallel runs on different perl/rpm versions (eg: using chroots).
-rw-r--r--NEWS1
-rwxr-xr-xt/simple-httpd1
2 files changed, 1 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index fc62dd18..4eaa2205 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,7 @@
o describe it more
o disable fsync/fdatasync while running tests
o make it more robust
+ o make sure simple-httpd is really killed once tests are completed
Version 8.121 - 8 April 2020
diff --git a/t/simple-httpd b/t/simple-httpd
index 123950ae..1f758699 100755
--- a/t/simple-httpd
+++ b/t/simple-httpd
@@ -25,7 +25,6 @@ sub configure_hook {
$self->{server}->{port} = "*:$PORT"; # port and addr to bind
$self->{server}->{user} = 'nobody'; # user to run as
$self->{server}->{group} = 'nogroup' if -e '/etc/mageia-release'; # group to run as
- $self->{server}->{setsid} = 1; # daemonize
$self->{server}->{log_file} = "$root/server.log";