lit: warn when passed invalid pathname
authorHans Wennborg <hans@hanshq.net>
Tue, 10 Jun 2014 22:51:58 +0000 (22:51 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 10 Jun 2014 22:51:58 +0000 (22:51 +0000)
commita327ac3e514fa615473057ced26fcb478c20b893
treeb39da85e7e39f5a023633e8eb61943aa56c07872
parentc6e5ff46be3c8d4a91a9d3dfe9c486991f19ef00
lit: warn when passed invalid pathname

It would previously say things like

  warning: input 'test/Frontend/foo.c' contained no tests

and have the user pull their hair trying to figure out what's wrong with that
file. This patch changes the message to the much clearer:

  warning: no such file or directory: 'test/Frontend/foo.c'

Differential Revision: http://reviews.llvm.org/D4097

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210597 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/discovery.py