Manually merge run-tests.py change from upstream commit fd03c7d.

"fd03c7d Constant fold math and string operations."