From a53fe0b02637f9997f4eb5349ddb57d3a3b8658a Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Fri, 3 Mar 2017 14:51:05 +0000 Subject: [PATCH] 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 --- tests/harness.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/harness.c b/tests/harness.c index 068b02f..028d13b 100644 --- a/tests/harness.c +++ b/tests/harness.c @@ -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)