Hi!
I’m trying to run individual test cases for LLDB commands using:
./bin/llvm-lit ../LLDB/lldb/test/Shell/Commands/command-target-modules-lookup.test -a
But I’m getting the following error:
llvm-lit: /home/talha/Documents/GitHub/LLDB/llvm/utils/lit/lit/TestingConfig.py:151: fatal: unable to parse config file '/home/talha/Documents/GitHub/LLDB/lldb/test/Shell/lit.cfg.py', traceback: Traceback (most recent call last):
File "/home/talha/Documents/GitHub/LLDB/llvm/utils/lit/lit/TestingConfig.py", line 139, in load_from_path
exec(compile(data, path, "exec"), cfg_globals, None)
File "/home/talha/Documents/GitHub/LLDB/lldb/test/Shell/lit.cfg.py", line 23, in <module>
config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell)
AttributeError: 'NoneType' object has no attribute 'use_lit_shell'
I’ve no idea why I’m getting this one. Can anyone please guide me weather there’s an issue with my build or it’s something else. Screenshot also attached for reference: