summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2018-09-26 03:36:26 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2018-09-26 03:36:26 (GMT)
commit8811fa184a7781acaaa906d1100c9824272552ee (patch)
tree728aac0a1515036cc12c96a243f378f333d41115
parente3155a940ade6b04427c9dd35a6aca213a65c5c9 (diff)
downloadSCons-8811fa184a7781acaaa906d1100c9824272552ee.zip
SCons-8811fa184a7781acaaa906d1100c9824272552ee.tar.gz
SCons-8811fa184a7781acaaa906d1100c9824272552ee.tar.bz2
Speedup explain tests on windows
-rw-r--r--test/explain/alias-order.py3
-rw-r--r--test/explain/basic.py3
-rw-r--r--test/explain/function-actions.py3
-rw-r--r--test/explain/get_csig.py3
-rw-r--r--test/explain/save-info.py3
5 files changed, 10 insertions, 5 deletions
diff --git a/test/explain/alias-order.py b/test/explain/alias-order.py
index 611c512..bdb8154 100644
--- a/test/explain/alias-order.py
+++ b/test/explain/alias-order.py
@@ -38,7 +38,8 @@ args = '--debug=explain target2.dat'
test.subdir('src')
test.write(['src', 'SConstruct'],"""
-env = Environment()
+DefaultEnvironment(tools=[])
+env = Environment(tools=[])
def action( source, target, env ):
f = open( str(target[0]), 'wb' )
diff --git a/test/explain/basic.py b/test/explain/basic.py
index ec7238e..19fc328 100644
--- a/test/explain/basic.py
+++ b/test/explain/basic.py
@@ -81,6 +81,7 @@ sys.exit(0)
SConstruct_contents = """\
+DefaultEnvironment(tools=[])
import re
include_re = re.compile(r'^include\s+(\S+)$', re.M)
@@ -98,7 +99,7 @@ kscan = Scanner(name = 'kfile',
cat = Builder(action = [[r'%(python)s', r'%(cat_py)s', '$TARGET', '$SOURCES']])
one_cat = Builder( action = [[r'%(python)s', r'%(cat_py)s', '$TARGET', '${SOURCES[0]}']])
-env = Environment()
+env = Environment(tools=[])
env.Append(BUILDERS = {'Cat':cat, 'OneCat':one_cat},
SCANNERS = kscan)
env.PrependENVPath('PATHEXT', '.PY')
diff --git a/test/explain/function-actions.py b/test/explain/function-actions.py
index bd3ad01..076b24e 100644
--- a/test/explain/function-actions.py
+++ b/test/explain/function-actions.py
@@ -38,9 +38,10 @@ test = TestSCons.TestSCons()
test.write('SConstruct', """\
+DefaultEnvironment(tools=[])
import shutil
-env = Environment()
+env = Environment(tools=[])
mode = int(ARGUMENTS.get('mode'))
if mode:
def DifferentCopy(target, source, env):
diff --git a/test/explain/get_csig.py b/test/explain/get_csig.py
index 8a0266a..b193797 100644
--- a/test/explain/get_csig.py
+++ b/test/explain/get_csig.py
@@ -39,7 +39,8 @@ test = TestSCons.TestSCons()
args = "--debug=explain"
test.write('SConstruct', """\
-env = Environment()
+DefaultEnvironment(tools=[])
+env = Environment(tools=[])
def action( source, target, env ):
target[0].get_csig()
diff --git a/test/explain/save-info.py b/test/explain/save-info.py
index 048ee8d..08255e0 100644
--- a/test/explain/save-info.py
+++ b/test/explain/save-info.py
@@ -69,6 +69,7 @@ sys.exit(0)
""")
test.write(['src', 'SConstruct'], """\
+DefaultEnvironment(tools=[])
import re
include_re = re.compile(r'^include\s+(\S+)$', re.M)
@@ -85,7 +86,7 @@ kscan = Scanner(name = 'kfile',
cat = Builder(action = r'%(_python_)s %(cat_py)s $TARGET $SOURCES')
-env = Environment()
+env = Environment(tools=[])
env.Append(BUILDERS = {'Cat':cat},
SCANNERS = kscan)