From: stevenknight Date: Wed, 15 Sep 2004 20:58:14 +0000 (+0000) Subject: Fix SourceCode test ordering. (Kevin Quick) X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3b134f6b64df2ec1a59801f82ebd82b1e9a3be8d;p=scons.git Fix SourceCode test ordering. (Kevin Quick) git-svn-id: http://scons.tigris.org/svn/scons/trunk@1073 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/test/SourceCode.py b/test/SourceCode.py index ea180040..86cc2a6c 100644 --- a/test/SourceCode.py +++ b/test/SourceCode.py @@ -56,11 +56,13 @@ def sc_cat(env, source, target): cat(env, source, target) env = Environment(BUILDERS={'Cat':Builder(action=cat)}, SUBDIR='sub') +env.SourceCode('$SUBDIR', Builder(action=sc_cat, env=env)) env.Cat('aaa.out', 'sub/aaa.in') -env.Cat('bbb.out', 'sub/bbb.in') +bbb_in = File('sub/bbb.in') +bbb_in.is_pseudo_derived() +env.Cat('bbb.out', bbb_in) env.Cat('ccc.out', 'sub/ccc.in') env.Cat('all', ['aaa.out', 'bbb.out', 'ccc.out']) -env.SourceCode('$SUBDIR', Builder(action=sc_cat, env=env)) SConscript('sub/SConscript', "env") SourceCode('sub2', Builder(action=sc_cat, env=env))