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:
Avery Pennarun 2010-11-16 04:16:01 -08:00
commit d9fe4806ac
2 changed files with 3 additions and 2 deletions

View file

@ -62,7 +62,8 @@ def _possible_do_files(t):
basename = '.'.join(l[:i])
ext = '.'.join(l[i:])
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):

View file

@ -1,2 +1,2 @@
redo-ifchange t/all
redo-ifchange t/c.c t/all
./wvtestrun "$REDO" runtests >&2