Update power restore logic to validate end state of the test.
Update power restore logic to validate end state of the test.

Fixes:
    - Refer valid state from mapping table(lib/state_map.py)
      to validate the valid boot state.

Change-Id: I9a0859c2ceea9ccceb58de4a00224fceb8adbcc6
Signed-off-by: George Keishing <bef0a9ecac45fb57611777c8270153994e13fd2e@in.ibm.com>

openbmc/openbmc-test-automation,openbmc/openbmc-test-automation