Improvements to state.py:

- Re-ordered some state constants
- Defined new os_running_match_state constant
- Deleted return_default_state which is made obsolete by
  return_state_constant
- Improved return_state_constant to dynamically return constant state
  without the lengthy if statement
- compare_states: Change to allow match_state to be the name of a
  state constant (like "os_running_match_state")
- obmc_boot_test.py:  Changed from using return_default_state to use
  return_state_constant('default_state')

Change-Id: I660b1a3f0dd9032ae9d5c369f7fe5b61b954f8c9
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
2 files changed