Fix left-over deprecated use of the Options object.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 20 Dec 2008 16:15:01 +0000 (16:15 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 20 Dec 2008 16:15:01 +0000 (16:15 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3838 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/Parallel/multiple-parents.py

index ceeb47f4847a2be86727ca6c356f9ec19c76d065..1b7a1a1d4e49374198004f1fb8cd597d5869efe6 100644 (file)
@@ -55,9 +55,9 @@ test = TestSCons.TestSCons()
 #    h) Builds that are interrupted
 
 test.write('SConstruct', """
-opts = Options()
-opts.Add( BoolOption('interrupt', 'Interrupt the build.', 0 ) )
-optEnv = Environment(options=opts)
+vars = Variables()
+vars.Add( BoolVariable('interrupt', 'Interrupt the build.', 0 ) )
+varEnv = Environment(variables=vars)
 
 def fail_action(target = None, source = None, env = None):
     return 2
@@ -93,7 +93,7 @@ prev_prereq = prereq0
 prev_ignore = ignore0
 prev_igreq  = igreq0
 
-if optEnv['interrupt']:
+if varEnv['interrupt']:
     prev_level = prev_level + interrupt
 
 for i in range(1,20):