[lit] fix a error when using --show-used-features
authorYuanfang Chen <yuanfang.chen@sony.com>
Wed, 19 Oct 2022 17:51:13 +0000 (10:51 -0700)
committerYuanfang Chen <yuanfang.chen@sony.com>
Wed, 19 Oct 2022 17:57:01 +0000 (10:57 -0700)
commit63512592e97d0b452d9cd666dc09bd63e18b0828
treef95c8556349dfa1603b5afe43f5f4e137c34c61f
parentfc7a71890d80a8d556dfee4555872916895ec663
[lit] fix a error when using --show-used-features

The error is
```
NotADirectoryError: [Errno 20] Not a directory: '<build-dir>/unittests/Analysis/./AnalysisTests/0/40'
```

Exclude unittests when collecting features because
unittests don't make use of feature keywords.
llvm/utils/lit/lit/main.py