From 4782bd3e949c8969d631fbd1077b635a91b4d85a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Fri, 20 Dec 2024 16:54:46 +0100 Subject: [PATCH] Prevent SIGCHLD handler override within tests This should prevent _setup_sigchld_handler overriding the handler for IPC::Run3 inside AssetPack. Without this, the sass process is not handled correctly inside the tests and the assets are not correctly compiled by the AssetPack. Reference: https://progress.opensuse.org/issues/174607 --- lib/OpenQA/Assets.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/OpenQA/Assets.pm b/lib/OpenQA/Assets.pm index 5b2b33e8d47..4f0ac0c93cd 100644 --- a/lib/OpenQA/Assets.pm +++ b/lib/OpenQA/Assets.pm @@ -20,6 +20,7 @@ sub setup ($server) { $server->asset->store->retries(5) if $Mojolicious::Plugin::AssetPack::VERSION > 2.13; # -> read assets/assetpack.def + local $SIG{CHLD}; eval { $server->asset->process }; if (my $assetpack_error = $@) { # uncoverable statement $assetpack_error # uncoverable statement