[PATCH 4.19 486/521] ktest: cleanup get_grub_index