Automation fix to delete the non functional image
Automation fix to delete the non functional image

Changes:
   - In previous code if user try to install the firmware which is
     non-functional but in active state then the code update skip,
     and it changes the priority to lowest and then make it
     fucntional image.
   - In new implementation, user can flash the firmware.
   - When user flash an image which is non functional on BMC,
     then these changes will delete the non functional image on BMC.
     After the deleting the non fucntional image, a fresh code update
     start with user image.

Signed-off-by: susilsi7 <7ecc3fd6a48952d1cd7b43fd00a1f6bd3c8c3306@in.ibm.com>
Change-Id: Ib4a42506614495e3c0b572d445d3858c13bfc4fc

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