[lldbtests] Handle errors instead of crashing.
authorDavide Italiano <davide@freebsd.org>
Mon, 23 Oct 2017 23:17:53 +0000 (23:17 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 23 Oct 2017 23:17:53 +0000 (23:17 +0000)
commit252d7bdc67ec298f91286c02b2ff694673ce7c12
tree2f3ca0332ff4650f2805bd022afb9cc4f3cc2436
parenta50619bf84be63d28d319a323f8dfcee66a9345a
[lldbtests] Handle errors instead of crashing.

If you pass an invalid compiler/debugger path on the cmdline to `dotest.py`  this is what you get.

  Traceback (most recent call last):
  [...]
    File "dotest.py", line 7, in <module>
      lldbsuite.test.run_suite()
  [...]

And with the patch applied:

  /home/davide/work/build-lldb/bin/clandasfasg is not a valid path, exiting

Differential Revision:  https://reviews.llvm.org/D39199

llvm-svn: 316393
lldb/packages/Python/lldbsuite/test/dotest.py