From 79b2e444982e2f944acc2735a76abeeeb22b88ee Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Mon, 14 Sep 2026 08:50:36 -0300 Subject: [PATCH] style(xcat-core): the payload test comment describes the verifier that was replaced The comment above the /usr/bin/awk case in genesis_payload_verification.t said what the verifier used to do with an absolute path. The rule the reader needs is what dracut_install does with one. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- xCAT-test/unit/genesis_payload_verification.t | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xCAT-test/unit/genesis_payload_verification.t b/xCAT-test/unit/genesis_payload_verification.t index c14f5f045..d1334b24b 100644 --- a/xCAT-test/unit/genesis_payload_verification.t +++ b/xCAT-test/unit/genesis_payload_verification.t @@ -68,9 +68,8 @@ my $noopenssl = build_payload(sshd_execs_session => 1, session_helper => 1, tmux isnt($rc, 0, 'a payload without openssl fails'); like($err, qr/openssl/, 'the missing openssl is named'); -# dracut_install installs an absolute path at that same path. The verifier used to drop every -# name that started with "/", so an image with no /usr/bin/awk passed. doxcat, getdestiny and -# the firmware wrappers all run awk. +# dracut_install installs an absolute path at that same path, so a name starting with "/" is a +# command the payload must carry. doxcat, getdestiny and the firmware wrappers all run awk. my $noawk = build_payload(sshd_execs_session => 1, session_helper => 1, tmux => 1, locale => 1, dhclient => 1, mktemp => 1, commands => [qw(openssl wget tar)], absent => ['usr/bin/awk']); ($rc, $err) = run_with_commands($module, $noawk);