Skip to content

Commit e6cd68c

Browse files
committed
Change the syntax and support opts
1 parent fbde66e commit e6cd68c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

reframe/core/pipeline.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,14 +1999,17 @@ def compile(self):
19991999
if not srcdir:
20002000
return
20012001
if isinstance(srcdir, dict):
2002-
url = next(iter(srcdir))
2003-
if not url:
2004-
raise ReframeError(f'The {srcdir} misses the url as key')
2005-
elif not osext.is_url(url):
2002+
if 'url' not in srcdir:
2003+
raise ReframeError(f'The {srcdir} misses the url key')
2004+
2005+
url = srcdir['url']
2006+
if not osext.is_url(url):
20062007
raise ReframeError(f'The {srcdir} syntax only supports '
20072008
'git repositories')
20082009
self._clone_to_stagedir(url,
20092010
files=srcdir[url]['files'] if 'files'
2011+
in srcdir[url] else None,
2012+
opts=srcdir[url]['opts'] if 'opts'
20102013
in srcdir[url] else None)
20112014
elif osext.is_url(srcdir):
20122015
self._clone_to_stagedir(srcdir)

0 commit comments

Comments
 (0)