Better comment in t/flush-cache, and a avoid a (rare) unit test error.

flush-cache reduces the failed_runid by 1 each time, and it runs
multiple times per 'redo test'.  if failed_runid goes to zero, it would
be treated as success ("no failure") rather than a real failure at
runid 0.
This commit is contained in:
Avery Pennarun 2018-11-21 21:00:36 -05:00
commit 5596b9fae3
3 changed files with 29 additions and 4 deletions

View file

@ -197,7 +197,7 @@ class BuildJob:
firstline = open(os.path.join(dodir, dofile)).readline().strip()
if firstline.startswith('#!/'):
argv[0:2] = firstline[2:].split(' ')
# make sure to create the logfile *before* writing the log about it.
# make sure to create the logfile *before* writing the meta() about it.
# that way redo-log won't trace into an obsolete logfile.
if vars.LOG: open(state.logname(self.sf.id), 'w')
self.dodir = dodir