Stop REST check moved last to improve performance
Stop REST check moved last to improve performance

Changed to check for REST functionality last for better efficiency.
If a test has failed, and the test is to be stopped, it is a waste of time to
first check whether REST commands are working since the result will be the
same.

The same is true for esel_stop_check.

Change-Id: I3237c0e06659eb3f587742cd7e737b7e373e7c9b
Signed-off-by: Michael Walsh <10404802c7de463f402c4a18638106ca1b12ef61@us.ibm.com>

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