comparison i18n/posplit @ 32981:02bca6dc5f41

run-tests: update .t reference output after reading the test The .t file is both test input and reference output. They should always match. However we have different code paths to read reference output (Test.__init__ -> Test.readrefout) and test input (TTest._run) so they might be inconsistent if somethings change the file between those two functions. This patch assigns "lines" read by "_run" back to "_refout" if "_refout" is not None (with --debug, see Test.readrefout) so reference output and test input will always match.
author Jun Wu <quark@fb.com>
date Wed, 21 Jun 2017 01:12:31 -0700
parents 90d84e1e427a
children d0e8933d6dad
comparison
equal deleted inserted replaced
32980:8dc62c97a665 32981:02bca6dc5f41