test.do would run all its subtasks even though it used 'redo-ifchange'.
The behaviour is what we wanted, but it shouldn't have worked. So fix the bug in redo-ifchange, then change test.do to use 'redo' instead so it continues to do what we want, only for the right reason. (The bug is that 'redo-ifchange dirname', which runs dirname/all.do, didn't result in stamps getting checked correctly.)
This commit is contained in:
parent
3fcd677428
commit
cd853fccfb
2 changed files with 4 additions and 2 deletions
|
|
@ -5,6 +5,8 @@ from helpers import debug, err, mkdirp, unlink
|
|||
|
||||
|
||||
def dirty_deps(t, depth):
|
||||
if os.path.exists('%s/.' % t):
|
||||
t = '%s/all' % t
|
||||
debug('%s?%s\n' % (depth, t))
|
||||
if state.isbuilt(t):
|
||||
debug('%s-- DIRTY (built)\n' % depth)
|
||||
|
|
|
|||
4
test.do
4
test.do
|
|
@ -1,2 +1,2 @@
|
|||
redo-ifchange t/c.c t/test
|
||||
|
||||
redo-ifchange t/c.c
|
||||
redo t/test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue