From a54ab6b3f2662669ca1c25a8ea8aa856366ca01c Mon Sep 17 00:00:00 2001 From: bernhard Date: Tue, 7 Jun 2022 12:29:29 +0200 Subject: [PATCH 1/2] Issue #1802: Perl 5.24 is the minimum Perl version instead of Perl 5.20 --- Kernel/Output/HTML/Layout/Template.pm | 2 +- scripts/test/Selenium/Output/Dashboard/CmdOutput.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Output/HTML/Layout/Template.pm b/Kernel/Output/HTML/Layout/Template.pm index ba35198e2f..7c36f00548 100644 --- a/Kernel/Output/HTML/Layout/Template.pm +++ b/Kernel/Output/HTML/Layout/Template.pm @@ -16,9 +16,9 @@ package Kernel::Output::HTML::Layout::Template; +use v5.24; use strict; use warnings; -use v5.20; # core modules use Scalar::Util qw(); diff --git a/scripts/test/Selenium/Output/Dashboard/CmdOutput.t b/scripts/test/Selenium/Output/Dashboard/CmdOutput.t index 1089ea4148..fae43bcd52 100644 --- a/scripts/test/Selenium/Output/Dashboard/CmdOutput.t +++ b/scripts/test/Selenium/Output/Dashboard/CmdOutput.t @@ -14,7 +14,7 @@ # along with this program. If not, see . # -- -use v5.20; +use v5.24; use strict; use warnings; use utf8; From 5016def9e89833c5e8adb045646318d6575ddeff Mon Sep 17 00:00:00 2001 From: bernhard Date: Tue, 7 Jun 2022 12:30:19 +0200 Subject: [PATCH 2/2] Issue #1802: quote the argument of 'echo' Otherwise the test string would be interpreted as a list of strings, implicitly squashing multiple spaces into a single space. --- scripts/test/Selenium/Output/Dashboard/CmdOutput.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test/Selenium/Output/Dashboard/CmdOutput.t b/scripts/test/Selenium/Output/Dashboard/CmdOutput.t index fae43bcd52..ffb7bde804 100644 --- a/scripts/test/Selenium/Output/Dashboard/CmdOutput.t +++ b/scripts/test/Selenium/Output/Dashboard/CmdOutput.t @@ -41,7 +41,7 @@ $Selenium->RunTest( my %CmdParam = ( Block => 'ContentSmall', CacheTTL => 60, - Cmd => "echo $CmdMessage", + Cmd => qq{echo "$CmdMessage"}, Default => 1, Description => '', Group => '',