[Lldb-commits] [lldb] r316451 - Revert "[lldbtests] Handle errors instead of crashing."

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 24 09:15:32 PDT 2017


On Tue, Oct 24, 2017 at 9:12 AM, Zachary Turner via lldb-commits
<lldb-commits at lists.llvm.org> wrote:
> I think there's something like lit.util.which(), or a similar function in
> lldb test utilities.  Seems like we could solve this by writing the
> function:
>
> ```
> def is_exe(fpath):
>    if not os.path.exists(fpath):
>        fpath = lit.util.which(fpath)
>        if not (fpath and os.path.exists(fpath)):
>          sys.exit(-1)
>       return is_exe(fpath)
>
>    return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
> ```
>

Yes, makes sense. Pavel, WDYT? Also, If you give me a link to the bot
I'll take a look at the conf and try to reproduce (still puzzled as I
haven't received the blame mail).

Thanks,

--
Davide


More information about the lldb-commits mailing list