summaryrefslogtreecommitdiffstats
path: root/test/explain.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-10-06 04:04:12 (GMT)
committerSteven Knight <knight@baldmt.com>2004-10-06 04:04:12 (GMT)
commita43d1523b0d0ad6b2f8fb3752d5817d7defbc615 (patch)
tree86899649564bf5d47e24fddb9ad0e94ab9f6045b /test/explain.py
parent4184abf1837627b2758430919b225bf065a98e7b (diff)
downloadSCons-a43d1523b0d0ad6b2f8fb3752d5817d7defbc615.zip
SCons-a43d1523b0d0ad6b2f8fb3752d5817d7defbc615.tar.gz
SCons-a43d1523b0d0ad6b2f8fb3752d5817d7defbc615.tar.bz2
Better --debug=explain info when build actions change. (Kevin Quick)
Diffstat (limited to 'test/explain.py')
-rw-r--r--test/explain.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/explain.py b/test/explain.py
index be966c0..eed95c4 100644
--- a/test/explain.py
+++ b/test/explain.py
@@ -455,7 +455,9 @@ if mode:
tgt = str(target[0])
src = str(source[0])
shutil.copy(src, tgt)
- MyCopy = Builder(action = DifferentCopy)
+ def AltCopyStage2(target, source, env):
+ pass
+ MyCopy = Builder(action = [DifferentCopy, AltCopyStage2])
def ChangingCopy(target, source, env):
tgt = str(target[0])
@@ -491,8 +493,11 @@ test.run(chdir = 'work5',
scons: rebuilding `f1.out' because the build action changed:
old: Copy("f1.out", "f1.in")
new: DifferentCopy(["f1.out"], ["f1.in"])
+ AltCopyStage2(["f1.out"], ["f1.in"])
DifferentCopy(["f1.out"], ["f1.in"])
+AltCopyStage2(["f1.out"], ["f1.in"])
scons: rebuilding `f2.out' because the contents of the build action changed
+ action: ChangingCopy(["f2.out"], ["f2.in"])
ChangingCopy(["f2.out"], ["f2.in"])
"""))