Update core test script for Avalon7
Update core test script for Avalon7

* Add mm version detect
* Add more error code
* Remove useless code

Canaan-Creative/Avalon-extras,qinfengling/Avalon-extras,Canaan-Creative/Avalon-extras,Canaan-Creative/Avalon-extras,qinfengling/Avalon-extras,Canaan-Creative/Avalon-extras,qinfengling/Avalon-extras,Canaan-Creative/Avalon-extras,qinfengling/Avalon-extras,Canaan-Creative/Avalon-extras,qinfengling/Avalon-extras,qinfengling/Avalon-extras