bake.py -o option returns 0 (success) in case of problems

18 views
Skip to first unread message

Thomas Burger

unread,
Dec 18, 2014, 3:00:04 PM12/18/14
to ns-3-...@googlegroups.com
Dear all,

I have some unexpected behaviour when using bake.py -o module.

In case of problems, return value 0 (success) is given:
~/dce-ns3-1.4$ ~/bake/bake.py build -o ns-3.21
 
>> Building ns-3.21 - Problem
~/dce-ns3-1.4$ echo $?
0


Without the -o option, return value 1 (failure) is given:
~/dce-ns3-1.4$ ~/bake/bake.py build
 
>> Building iperf - OK
 
>> Building thttpd - OK
 
...
 
>> Building netanim-3.105 - OK
 
>> Building elf-loader - OK
 
>> Building ns-3.21 - Problem
 
> Error:  Critical dependency, module "ns-3.21" failed
   
For more information call Bake with --debug and/or -v, -vvv, for full verbose mode (bake --help)
~/dce-ns3-1.4$ echo $?
1

I am using Ubuntu 12.04 LTS 64-bit (Linux Edge13 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux) and dce-ns3-1.4

bake is freshly cloned
~/dce-ns3-1.4$ ~/bake/bake.py -V
 
> Bake Version 0.1

Obviously, the error code is not set unless the overall build process sets it. Is this behaviour on purpose? Unfortunately I'm not familiar with python, therefore I did not have a closer look into bake.py yet...

Best Regards,
Thomas

Tom Henderson

unread,
Dec 18, 2014, 3:09:11 PM12/18/14
to ns-3-...@googlegroups.com
On 12/18/2014 12:00 PM, Thomas Burger wrote:
> Dear all,
>
> I have some unexpected behaviour when using bake.py -o module.
>
> In case of problems, return value 0 (success) is given:
> |
> ~/dce-ns3-1.4$ ~/bake/bake.py build -o ns-3.21
>>>Buildingns-3.21-Problem
> ~/dce-ns3-1.4$ echo $?
> 0
> |
>
>
> Without the -o option, return value 1 (failure) is given:
> |
> ~/dce-ns3-1.4$ ~/bake/bake.py build
>>>Buildingiperf -OK
>>>Buildingthttpd -OK
> ...
>>>Buildingnetanim-3.105-OK
>>>Buildingelf-loader -OK
>>>Buildingns-3.21-Problem
>>Error:Criticaldependency,module"ns-3.21"failed
> Formore information call Bakewith--debug and/or-v,-vvv,forfull verbose
> mode (bake --help)
> ~/dce-ns3-1.4$ echo $?
> 1
> |
>
> I am using Ubuntu 12.04 LTS 64-bit (Linux Edge13 3.8.0-29-generic
> #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 x86_64
> x86_64 GNU/Linux) and dce-ns3-1.4
>
> bake is freshly cloned
> |
> ~/dce-ns3-1.4$ ~/bake/bake.py -V
>>BakeVersion0.1
> |
>
> Obviously, the error code is not set unless the overall build process
> sets it. Is this behaviour on purpose? Unfortunately I'm not familiar
> with python, therefore I did not have a closer look into bake.py yet...
>
> Best Regards,
> Thomas
>
Thomas, thanks for reporting this; it seem to be a bug. I added it as
issue 2032 in our tracker.

- Tom

Reply all
Reply to author
Forward
0 new messages