← Back to team overview

spv-dev team mailing list archive

Re: lp:~jmartel/slidepresenterview/fix-ui-files-generation-return-code into lp:slidepresenterview

 

Surprising. It seems to work correctly on Windows. The same steps give a return code of 1.

Are you sure that you looked at the right return code ? I ask this because (by looking at the source code of gen_ui.py), the only way to get the message:

> Command failed: /usr/bin/pyuic4 -o [...]

is by entering into a if condition that specifies that the return code is not zero.


> It doesn't work if pyuic4 doesn't exit.
> 
> Step to reproduce:
>  - Move puic4 (sudo mv /usr/bin/pyuic4 /var/tmp/pyuic4)
>  - Run gen_ui.py
>  - The error is logged but the return code is 0
> 
> ./tools/gen_ui.py; echo $?
> building: /usr/bin/pyuic4 -o [...]
> sh: /usr/bin/pyuic4: not found
> Command failed: /usr/bin/pyuic4 -o [...]
> 0

-- 
https://code.launchpad.net/~jmartel/slidepresenterview/fix-ui-files-generation-return-code/+merge/28914
Your team SlidePresenterView Development Team is subscribed to branch lp:slidepresenterview.



References