Skip to content

Commit

Permalink
Prevent SIGCHLD handler override within tests
Browse files Browse the repository at this point in the history
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
  • Loading branch information
perlpunk authored and baierjan committed Dec 20, 2024
1 parent 658e183 commit 4782bd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/OpenQA/Assets.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4782bd3

Please sign in to comment.