I am running the clover shell script within a driver shell script. I am processing a sequence of graphs in my driver script. I am logging the clover output to a log file by redirecting the stdout to a log file i.e. >>. In my shell script, I want to print out the success or failure of a graph and then stop my driver if a graph fails. I assumed that the clover script would return a success or error code but it does not. How can I determine the success or failure of a graph.
Hi,
which version of Clover are you using? It should return a success or error code, more specifically:
0 - OK
-1 - ERROR
-2 - ABORTED
Jaro
Hi there,
Is there a way to return “success” messages to the caller? something like the raiseError() function?
Right now I am calling raiseError() with custom messages and then check ERROR_MESSAGE when the graph finishes.
But this is only for error conditions. How can I do this for success situations?
Thanks!
Jus