Oops, 'redo t/c.c' didn't work, because find_do_file() was slightly wrong.
We weren't searching for default.*.do in the subdir when needed.
This commit is contained in:
parent
94b0e7166e
commit
d9fe4806ac
2 changed files with 3 additions and 2 deletions
3
redo.py
3
redo.py
|
|
@ -62,7 +62,8 @@ def _possible_do_files(t):
|
||||||
basename = '.'.join(l[:i])
|
basename = '.'.join(l[:i])
|
||||||
ext = '.'.join(l[i:])
|
ext = '.'.join(l[i:])
|
||||||
if ext: ext = '.' + ext
|
if ext: ext = '.' + ext
|
||||||
yield "default%s.do" % ext, basename, ext
|
yield (os.path.join(dirname, "default%s.do" % ext),
|
||||||
|
os.path.join(dirname, basename), ext)
|
||||||
|
|
||||||
|
|
||||||
def find_do_file(t):
|
def find_do_file(t):
|
||||||
|
|
|
||||||
2
test.do
2
test.do
|
|
@ -1,2 +1,2 @@
|
||||||
redo-ifchange t/all
|
redo-ifchange t/c.c t/all
|
||||||
./wvtestrun "$REDO" runtests >&2
|
./wvtestrun "$REDO" runtests >&2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue