Personal tools
You are here: Home Forum Use SALOME -t returns zero even if the script fails

SALOME -t returns zero even if the script fails

Up to Use

SALOME -t returns zero even if the script fails

Posted by Matheus Cansian at December 04. 2017

I think SALOME is not being a nice shell citizen. When I run a python script with salome -t, it will always return zero. It doesn't matter if the scripts fails or if I use sys.exit(1) on the script. It always return zero.

I'm building a server that runs this kind of scripts on the cloud, but since it always returns zero I have no way of knowing when the script has failed. Yeah, sure I could print a message like OK and grep for that but it seems more like a hack than a proper solution.

So guys, am I doing something wrong or should I report an issue to SALOME? Thanks!

Btw: I googled that and found no solution.

Powered by Ploneboard
Document Actions