mirror of
https://github.com/clearlinux/clr-boot-manager.git
synced 2026-09-01 02:34:42 +00:00
harness: Fix error in calculation of installed file counts
This completely broke the condition to effectively return true == true. Luckily our *current* tests still pass with this change, however it was discovered when introducing namespacing. Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
This commit is contained in:
+1
-1
@@ -480,7 +480,7 @@ int kernel_installed_files_count(BootManager *manager, PlaygroundKernel *kernel)
|
||||
bool confirm_kernel_installed(BootManager *manager, PlaygroundConfig *config,
|
||||
PlaygroundKernel *kernel)
|
||||
{
|
||||
return kernel_installed_files_count(manager, kernel) == config->uefi ? 3 : 2;
|
||||
return kernel_installed_files_count(manager, kernel) == (config->uefi ? 3 : 2);
|
||||
}
|
||||
|
||||
bool confirm_kernel_uninstalled(BootManager *manager, PlaygroundKernel *kernel)
|
||||
|
||||
Reference in New Issue
Block a user