summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/CacheDirTests.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/CacheDirTests.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/CacheDirTests.py')
-rw-r--r--src/engine/SCons/CacheDirTests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/SCons/CacheDirTests.py b/src/engine/SCons/CacheDirTests.py
index fd36cce..5e63548 100644
--- a/src/engine/SCons/CacheDirTests.py
+++ b/src/engine/SCons/CacheDirTests.py
@@ -194,10 +194,10 @@ class FileTestCase(BaseTestCase):
cd_f3 = self.test.workpath("cd.f3")
f3 = self.File(cd_f3)
- f3.built()
+ f3.push_to_cache()
assert self.pushed == [], self.pushed
self.test.write(cd_f3, "cd.f3\n")
- f3.built()
+ f3.push_to_cache()
assert self.pushed == [f3], self.pushed
self.pushed = []
@@ -240,7 +240,7 @@ class FileTestCase(BaseTestCase):
warn_caught = 0
try:
- f7.built()
+ f7.push_to_cache()
except SCons.Errors.BuildError, e:
assert e.exc_info[0] == SCons.Warnings.CacheWriteErrorWarning
warn_caught = 1