Fix a bug in runtest.py

fix a bug