- Added a --debug=time option to print SCons execution times.
+ From Jeff Petkau:
+
+ - Fix --implicit-cache if the scanner returns an empty list.
+
From Zed Shaw:
- Add an Append() method to Environments, to append values to
assert e.get_implicit() == ['foo bletch', 'bar']
assert e.render(m) == "123 456 789 foo bletch\0bar"
+ e = SCons.Sig.SConsignEntry(m, "987 654 321")
+ assert e.timestamp == 987
+ assert e.bsig == 654
+ assert e.csig == 321
+ assert e.get_implicit() == []
+ assert e.render(m) == "987 654 321 " # note trailing space
+
class SConsignFileTestCase(unittest.TestCase):
def runTest(self):
if arr[2] == '-': self.csig = None
else: self.csig = module.from_string(arr[2])
- if arr[3] == '-': self.implicit = None
- else: self.implicit = arr[3]
+ if len(arr) < 4: self.implicit = ''
+ elif arr[3] == '-': self.implicit = None
+ else: self.implicit = arr[3]
except IndexError:
pass
return '%s %s %s %s' % (timestamp, bsig, csig, implicit)
def get_implicit(self):
- if not self.implicit:
+ if self.implicit is None:
return None
+ elif self.implicit == '':
+ return []
else:
return string.split(self.implicit, '\0')