From 0ff70ab9a666e737a912b67cd724cfc86973bb44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Sun, 27 Sep 2026 12:01:19 -0300 Subject: [PATCH] test(ipxe-xcat): stop comparing the payload with the bare release tree The next commit installs the ipxe/shim 16.1 shims over the shims of the release tree, so payload.sha256 no longer describes the bare tree. The commit after it checks the tree with the shims in place. --- t/ipxe_xcat_payload.t | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/t/ipxe_xcat_payload.t b/t/ipxe_xcat_payload.t index f58ccac..6a78aeb 100644 --- a/t/ipxe_xcat_payload.t +++ b/t/ipxe_xcat_payload.t @@ -116,13 +116,11 @@ is($code, 2, 'a tree path that is a symlink is refused'); my @releases = glob("$pkg_dir/ipxeboot-*.tar.gz"); is(scalar(@releases), 1, 'the package directory holds one release archive'); SKIP: { - skip 'no release archive', 3 if @releases != 1; + skip 'no release archive', 2 if @releases != 1; my $release = "$tmp/release"; make_path($release); is(system('tar', '-xzf', $releases[0], '--strip-components=1', '-C', $release), 0, 'the release archive unpacks'); - ($code, $output) = run_checker($release, "$pkg_dir/payload.sha256"); - is($code, 0, 'payload.sha256 matches the committed release archive') or diag($output); open(my $fh, '<', "$pkg_dir/SHA256SUMS") or die "read SHA256SUMS: $!"; my %sums = map { /^([0-9a-f]{64}) (\S+)$/ ? ($2, $1) : () } <$fh>;