run-tests: pass an optional TestResult into _executetests()
If the result is passed, we execute tests in the unittest way. A
subsequent patch will actually do this.
Testing that hghave does not crash when checking features $ "$TESTDIR/hghave" --test-features 2>/dev/null