mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-25 20:02:19 +00:00
e79ba14bcd
reg_linux_diskless_installation_flat sets machine:invalid, a valid machine type and then no machine type in vmothersetting with three long inline commands. The bats test for them cut the commands out of the case file with a regex. Move the three commands unchanged into commoncmd/vm_machine_type.sh and call it from the case. The bats test now sources the helper and runs the case's three steps against a stubbed lsdef and chdef. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>