[PATCH v2 2/3] kunit: tool: factor exec + parse steps into a function