build.py: check clear succeed