From f106d7468c0a9cfb7d83a612a85c06ad89257217 Mon Sep 17 00:00:00 2001 From: Rahul Ganesh <31204974+rahulbabu95@users.noreply.github.com> Date: Tue, 7 Nov 2023 11:41:02 -0800 Subject: [PATCH] Run larger tests for tinkerbell first for e2e runs (#6978) Signed-off-by: Rahul Ganesh Co-authored-by: Rahul Ganesh --- internal/test/e2e/run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/test/e2e/run.go b/internal/test/e2e/run.go index 2e671ab5e7eb..11733fe18a01 100644 --- a/internal/test/e2e/run.go +++ b/internal/test/e2e/run.go @@ -464,9 +464,9 @@ func getTinkerbellTestsWithCount(tinkerbellTests []string, conf ParallelRunConf) tinkerbellTestsWithCount = append(tinkerbellTestsWithCount, TinkerbellTest{Name: testName, Count: hwCount}) } } - // sort tests by Hardware count, to enable running smaller tests first for Tinkerbell Provider + // sort tests by Hardware count, to enable running larger tests first for Tinkerbell Provider sort.Slice(tinkerbellTestsWithCount, func(i, j int) bool { - return tinkerbellTestsWithCount[i].Count < tinkerbellTestsWithCount[j].Count + return tinkerbellTestsWithCount[i].Count > tinkerbellTestsWithCount[j].Count }) return tinkerbellTestsWithCount, nil