From fa29763b71ae99e971572c347a00d5effa4bf9d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Mon, 19 Oct 2026 19:29:44 -0300 Subject: [PATCH] test(profiles): allow group-writable source checkouts Check executable bits when selecting source profiles. Exact package modes remain covered by the native payload test. --- xCAT-test/unit/profile_customization.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-test/unit/profile_customization.t b/xCAT-test/unit/profile_customization.t index f907884d33..03851240d3 100644 --- a/xCAT-test/unit/profile_customization.t +++ b/xCAT-test/unit/profile_customization.t @@ -87,9 +87,9 @@ for my $case (@cases) { : xCAT::SvrUtils::get_file_name($base, $extension, $profile, "$os.2", $arch); is($selected, "$base/$name", 'retains the public profile filename'); ok(defined($selected) && -r $selected, 'selected asset is readable') or return; - is(sprintf('%04o', S_IMODE((stat($selected))[2])), - $extension eq 'postinstall' ? '0755' : '0644', - 'retains the asset permissions'); + is(sprintf('%03o', S_IMODE((stat($selected))[2]) & oct('111')), + $extension eq 'postinstall' ? '111' : '000', + 'only postinstall assets are executable'); my $original = read_binary($selected); my $custom = "$work/$name"; copy($selected, $custom) or die "copy $selected: $!";