Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@

# Check if soldb is available
def check_soldb():
if not soldb_path:
return False
try:
if soldb_path:
subprocess.run(shlex.split(soldb_path) + ['--help'], check=True, capture_output=True)
return True
except:
pass
return False
subprocess.run(shlex.split(soldb_path) + ['--help'], check=True, capture_output=True)
return True
except (OSError, subprocess.SubprocessError):
return False

if check_soldb():
config.available_features.add('soldb')
Expand Down
Loading