run-regression-test: support offline index mode