I've started working on changing the format of our recipe results. The
current format is not sufficient as it only reports the cumulative
result of the entire recipe. When the recipe contains several command
sequences the cumulative result is not very helpful, also when a single
command fails it would be nice to know which one it was without blindly
searching all the logs produced.
With this in mind I have the first draft of how I would like the result
output look like. I'm attaching an example file to this email.
The new format gives you information about every command launched, and
show where command sequences start. I decided it wouldn't be very clean
if too much information was given so I'm limiting the output to only
show the type and value of the comand. Additionally it displays the
background id of a command if it has one (so that we can match the
corresponding wait/intr/kill command).
In case the command failed an error message is printed on the next line.
This relies on the fact that the command will return a result dictionary
that contains a field named 'err_msg'.
I haven't decided how to print 'system_config' commands yet but I have a
basic idea. If anyone has any ideas on what they would like to see for
system_configs I will be pleased to hear them.
Let me know what you think about this format, and if you have any ideas
for improvement, please share. The most important part is if I'm not
missing any important parts of commands. It is a summary so I don't want
to print everything (that can be seen in the xml output of option -x).
Thank you for your answers.