mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-08-28 01:26:41 +00:00
73b145d7ff
Add a unit test for the routine that chooses the compression program. The test lifts the routine out of the plugin source, because the plugin needs a management node to load. The test shows that lzma is used when it is there, that xz stands in when it is not, and that xz is asked for the lzma container rather than its own. It also shows that the caller takes the command from the routine, that the file keeps its name and its suffix, and that the gzip fallback and the rename into place both remain.