projects
/
cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9fec9df
)
Optionally pass options into test().
author
Carl Hetherington
<cth@carlh.net>
Tue, 16 Jun 2020 07:53:45 +0000
(09:53 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 16 Jun 2020 09:59:43 +0000
(11:59 +0200)
cdist
patch
|
blob
|
history
diff --git
a/cdist
b/cdist
index 01e016cacff8ce80d917b5e6ec32c084834e1b8d..ffcce29403309058a2a284463f14282fdc12020c 100755
(executable)
--- a/
cdist
+++ b/
cdist
@@
-480,7
+480,13
@@
class Target(object):
if self.build_dependencies:
tree.build_dependencies(options)
tree.build(options)
if self.build_dependencies:
tree.build_dependencies(options)
tree.build(options)
- return tree.call('test', test)
+
+ tree.add_defaults(options)
+ if len(inspect.getfullargspec(tree.cscript['test']).args) == 3:
+ return tree.call('test', options, test)
+ else:
+ log_normal('Deprecated cscript test() method with no options parameter')
+ return tree.call('test', test)
def set(self, a, b):
self.variables[a] = b
def set(self, a, b):
self.variables[a] = b