[cfe-dev] Need Python help in TestRunner.py

John Thompson john.thompson.jtsoftware at gmail.com
Tue Oct 13 07:19:16 PDT 2009


In running the test Driver/ast.c on Windows:

2>  File "C:\Tools\llvm\utils\lit\TestRunner.py", line 79, in executeShCmd
2>    raise NotImplementedError,"Unsupported redirect: %r" % (r,)
2>NotImplementedError: Unsupported redirect: (('>>',),
'C:\\Tools\\llvm\\tools\\clang\\test\\Driver\\Output\\ast.c.tmp')
It appears that '>>' is not one of the conditions in the if/else series, and
I don't know Python well enough to fix it.

My guess of adding:

            elif r[0] == ('>>',):
                redirects[1] = [r[1], 'a', None]
resulted in the redirected output being put at the front of the output file.
So if this is a quick fix for someone, I'd appreciate the help.

-John

-- 
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091013/02221215/attachment.html>


More information about the cfe-dev mailing list