[Scons-dev] Getting started with the SCons code base~

William Blevins wblevins001 at gmail.com
Sat Jul 12 12:28:18 EDT 2014


I run my test:

[wblevins at localhost scons]$ export PRESERVE=1
> [wblevins at localhost scons]$ ./runtest.py test/Java/DerivedSourceTest.py
> 1/1 (100.00%) /usr/bin/python -tt test/Java/DerivedSourceTest.py
> /home/wblevins/BitBucket/scons/src/script/scons.py returned 2
> STDOUT
> =========================================================================
> scons: Reading SConscript files ...
>
> STDERR
> =========================================================================
> ValueError: zero length field name in format:
>   File "/tmp/testcmd.12339.qe2sNH/SConstruct", line 4:
>     env = Environment()
>   File "/home/wblevins/BitBucket/scons/src/engine/SCons/Environment.py",
> line 1003:
>     apply_tools(self, tools, toolpath)
>   File "/home/wblevins/BitBucket/scons/src/engine/SCons/Environment.py",
> line 107:
>     env.Tool(tool)
>   File "/home/wblevins/BitBucket/scons/src/engine/SCons/Environment.py",
> line 1787:
>     tool(self)
>   File "/home/wblevins/BitBucket/scons/src/engine/SCons/Tool/__init__.py",
> line 183:
>     self.generate(env, *args, **kw)
>   File "/home/wblevins/BitBucket/scons/src/engine/SCons/Tool/default.py",
> line 41:
>     SCons.Tool.Tool(t)(env)
>   File "/home/wblevins/BitBucket/scons/src/engine/SCons/Tool/__init__.py",
> line 183:
>     self.generate(env, *args, **kw)
>   File "/home/wblevins/BitBucket/scons/src/engine/SCons/Tool/dmd.py", line
> 131:
>     env['DLIBCOM'] = '$DLIB $_DLIBFLAGS {} $TARGET $SOURCES
> $_DLIBFLAGS'.format('-c' if env['PLATFORM'] == 'win32' else '')
>
> FAILED test of /home/wblevins/BitBucket/scons/src/script/scons.py
>     at line 598 of /home/wblevins/BitBucket/scons/QMTest/TestCommon.py
> (_complete)
>     from line 701 of /home/wblevins/BitBucket/scons/QMTest/TestCommon.py
> (run)
>     from line 390 of /home/wblevins/BitBucket/scons/QMTest/TestSCons.py
> (run)
>     from line 90 of test/Java/DerivedSourceTest.py
> Preserved directory /tmp/testcmd.12339.qe2sNH
> Preserved directory /tmp/testcmd.12339.qe2sNH
>

I get a silly error which makes no sense.  Now I do:

[wblevins at localhost testcmd.12339.qe2sNH]$ cd /tmp/testcmd.12339.qe2sNH
> [wblevins at localhost testcmd.12339.qe2sNH]$ scons
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
>
> scons: warning: Support for pre-2.7.0 Python version (2.6.6) is deprecated.
>     If this will cause hardship, contact dev at scons.tigris.org.
> File "/usr/bin/scons", line 192, in <module>
> scons: Building targets ...
> javac -d build -sourcepath org/sample org/sample/Sample.java
> scons: done building targets.
>

And the scons call works just fine, so I am confused.  Is it a RHEL6
default python version issue?

On Sat, Jul 12, 2014 at 12:16 PM, Dirk Bächle <tshortik at gmx.de> wrote:

> On 12.07.2014 18:13, William Blevins wrote:
>
>> Thx I figured out the "runtest.py -f" question from the rst file.  I'm
>> still confused on test.write not writing.
>>
>>
>>  Regard that the test folders are only temporary, they get deleted
> immediately after running each test. See end of the "Running tests"
> section...
>
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> http://two.pairlist.net/mailman/listinfo/scons-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20140712/ceefddf4/attachment-0001.html>


More information about the Scons-dev mailing list