Skip to content

Commit 9207853

Browse files
author
1138-4EB
committed
update 'ui.use_verification_components'
1 parent 72b80e3 commit 9207853

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

vunit/ui.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,8 @@ def add_verification_components(self, location=None):
11111111
:returns: a dict containing the 'third_party' location and the known/supported VCs.
11121112
"""
11131113
self._builtins.add("verification_components")
1114-
return _read_vcs_cfg(location=location)
1114+
if location:
1115+
return _read_vcs_cfg(location=location)
11151116

11161117
def use_verification_components(self, cfg, vc_list):
11171118
"""
@@ -1182,11 +1183,6 @@ def _traverse_vc_cfg(cfg, vc_list, func, task, depends=True):
11821183
"""
11831184
11841185
"""
1185-
wh_loc = cfg['third_party']
1186-
if not isdir(wh_loc):
1187-
print('Creating directory ' + wh_loc)
1188-
mkdir(wh_loc)
1189-
11901186
for key in vc_list:
11911187
if key not in cfg:
11921188
print('VC <' + key + '> not defined. Please add it to the configuration first.')
@@ -1206,13 +1202,8 @@ def _add_vc(key, cfg, task, depends=True):
12061202
item = cfg[key]
12071203
loc = item['path'] if isabs(item['path']) else join(cfg['third_party'], item['path'])
12081204
if not isdir(loc):
1209-
print('VC <' + key + '> not available locally.')
1210-
print(popen(' '.join([
1211-
'git',
1212-
'clone',
1213-
item['remote'],
1214-
loc
1215-
])).read())
1205+
print('VC <%s> not available found. Please install it to %s' % (key, loc))
1206+
exit(1)
12161207

12171208
vc_cfg_file = join(loc, 'vunit_cfg.json')
12181209
if not isfile(vc_cfg_file):
@@ -1222,7 +1213,6 @@ def _add_vc(key, cfg, task, depends=True):
12221213

12231214
if depends:
12241215
for name, _ in vc_cfg['depends'].items():
1225-
# TODO Check 'val', which tells the minimum and/or maximum required version
12261216
if name == 'VUnit':
12271217
continue
12281218
_add_vc(name, cfg, task)

0 commit comments

Comments
 (0)