source = [source]
rsources = map(rfile, source)
act = self.__generate(target, source, env, 0)
- return act.strfunction(target, rsources, env)
+ if act.strfunction:
+ return act.strfunction(target, rsources, env)
+ else:
+ return None
def __str__(self):
try:
s = a.strfunction([], [], env=Environment())
assert s == "sf was called", s
+ def f(target, source, env, for_signature, self=self):
+ def null(target, source, env):
+ pass
+ return SCons.Action.Action(null, strfunction=None)
+ a = SCons.Action.CommandGeneratorAction(f)
+ s = a.strfunction([], [], env=Environment())
+
def test_execute(self):
"""Test executing a command generator Action
"""