2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-07-31 18:19:40 +00:00

test(packaging): allow shared init state detection

This commit is contained in:
Vinícius Ferrão
2026-07-19 12:01:25 -03:00
parent 002634ef6b
commit 6d7de3a927
+3 -3
View File
@@ -246,8 +246,8 @@ is( scalar @empty_init_cleanup, 1,
like( $rpm_spec,
qr{%if 0%\{\?suse_version\}\s+%else\s+# Remove only an empty directory.*?rmdir /etc/init\.d 2>/dev/null \|\| true\s+%endif}s,
'RPM upgrades preserve the SUSE-owned init directory' );
like( $rpm_spec,
qr{if \[ -e "\$legacy_xcatd_link" \] \|\| \[ -L "\$legacy_xcatd_link" \]},
'RPM upgrade recognizes enabled state through dangling legacy links' );
like( join( "\n", $rpm_spec, read_file($helper) ),
qr{if \[ -e "\$legacy(?:_xcatd)?_link" \] \|\| \[ -L "\$legacy(?:_xcatd)?_link" \]},
'xcatd init management recognizes enabled state through dangling legacy links' );
done_testing();