add --flush-cache option to runtest.py

This patch is in service of bug 896019; I don't know what's involved with
getting tests to run featuring this option.