run-tests: detect HGWITHRUSTEXT value
Without this, some manual check in tests/test-dirstate.t could get confused by
the lack of `rust` in module policy and break the test.
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.