scripts/addon: add option to test if addon() fails

I need this for my repo buildscripts.