regtest: Don't run the tools on symlinks

Its redundant and thus slows down the whole regression testing.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-08-22 09:14:28 -03:00
parent 641daf5191
commit ab554628a1
1 changed files with 5 additions and 3 deletions

View File

@ -95,9 +95,11 @@ def do_tool(tool, before_after, dirname, fname, prepend_obj_dir = False):
obj_path = os.path.join(dirname, fname)
if prepend_obj_dir:
obj_path = os.path.join(regtest_obj_dir, obj_path)
command = '%s %s > "%s.%s.c"' % (tool, obj_path,
os.path.join(tool_output_dir,
fname[:-6]), tool)
if os.path.islink(obj_path):
return
output_file = os.path.join(tool_output_dir, fname[:-6])
command = '%s %s > "%s.%s.c"' % (tool, obj_path, output_file, tool)
if verbose > 1:
print command
elif verbose > 0: