summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/TaskmasterTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2009-02-22 06:34:14 (GMT)
committerSteven Knight <knight@baldmt.com>2009-02-22 06:34:14 (GMT)
commit140cb569328ee9904e7339932502307d035a8ee0 (patch)
treeb9c8610286de9c2c20f8625fc99f6a7d783d55a2 /src/engine/SCons/TaskmasterTests.py
parente6acb0941b3a9415ed76e60d541096dedd026908 (diff)
downloadSCons-140cb569328ee9904e7339932502307d035a8ee0.zip
SCons-140cb569328ee9904e7339932502307d035a8ee0.tar.gz
SCons-140cb569328ee9904e7339932502307d035a8ee0.tar.bz2
Move the set_state(EXECUTED) call associated with pulling things
out of a CacheDir from CacheDir.py to Taskmaster.py. Ripple effects include adding a Node.FS.push_to_cache() method, so that logic can be invoked separately from the Node.built() method.
Diffstat (limited to 'src/engine/SCons/TaskmasterTests.py')
-rw-r--r--src/engine/SCons/TaskmasterTests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/engine/SCons/TaskmasterTests.py b/src/engine/SCons/TaskmasterTests.py
index 282f4df..6c80230 100644
--- a/src/engine/SCons/TaskmasterTests.py
+++ b/src/engine/SCons/TaskmasterTests.py
@@ -69,6 +69,9 @@ class Node:
def disambiguate(self):
return self
+ def push_to_cache(self):
+ pass
+
def retrieve_from_cache(self):
global cache_text
if self.cached:
@@ -87,7 +90,8 @@ class Node:
def built(self):
global built_text
- built_text = built_text + " really"
+ if not self.cached:
+ built_text = built_text + " really"
def has_builder(self):
return not self.builder is None