apply(TestCmd.TestCmd.__init__, [self], kw)
os.chdir(self.workdir)
- def run(self, stdout = None, stderr = '', status = 0, **kw):
+ def run(self, options = None, arguments = None,
+ stdout = None, stderr = '', status = 0, **kw):
"""Runs SCons.
This is the same as the base TestCmd.run() method, with
By default, this does not test standard output (stdout = None),
and expects that error output is empty (stderr = "").
"""
+ if options:
+ arguments = options + " " + arguments
+ kw['arguments'] = arguments
try:
apply(TestCmd.TestCmd.run, [self], kw)
except:
print self.stderr()
raise TestFailed
- def up_to_date(self, arguments = None, **kw):
- kw['arguments'] = arguments
+ def up_to_date(self, options = None, arguments = None, **kw):
s = ""
for arg in string.split(arguments):
s = s + 'scons: "%s" is up to date.\n' % arg
+ if options:
+ arguments = options + " " + arguments
+ kw['arguments'] = arguments
kw['stdout'] = s
apply(self.run, [], kw)