Signed-off-by: Christoph Heiss <c.he...@proxmox.com> --- Changes v1 -> v2: * new patch, suggested by Stefan --- proxmox-auto-installer/tests/parse-answer.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/proxmox-auto-installer/tests/parse-answer.rs b/proxmox-auto-installer/tests/parse-answer.rs index 1fc515e..ff25a65 100644 --- a/proxmox-auto-installer/tests/parse-answer.rs +++ b/proxmox-auto-installer/tests/parse-answer.rs @@ -40,9 +40,7 @@ pub fn setup_test_basic(path: &Path) -> (SetupInfo, LocaleInfo, RuntimeInfo, Ude }; runtime_info.disks.sort(); - if runtime_info.disks.is_empty() { - panic!("disk list is empty!"); - } + assert!(!runtime_info.disks.is_empty(), "disk list cannot be empty"); (installer_info, locale_info, runtime_info, udev_info) } -- 2.45.1 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel