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:
Ikey Doherty
2017-03-03 14:51:05 +00:00
parent e9f1fc6e91
commit a53fe0b026
+1 -1
View File
@@ -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)