[flashrom] [PATCH 2/5] Introduce and use enum test_state