Replies: 5 comments
-
@ana @beraldoleal @willianrampazzo any thoughts on this? |
Beta Was this translation helpful? Give feedback.
-
I'm ok with this second option, however IIUC, spiting the stdout/stderr but preserving the order will be tricky (but feasible). Probably we will have to use a timestamp with the pipes. My two cents: rename log to debug.log or something more meaningful. |
Beta Was this translation helpful? Give feedback.
-
Having one log file by test, like option 2, seems reasonable for me. I don't think all the information from stdout and stderr should be inside it, but that is an implementation detail. |
Beta Was this translation helpful? Give feedback.
-
This sounds good, I just assume you mean |
Beta Was this translation helpful? Give feedback.
-
I took at time for looking the behavior before replying, the second option seems better for me. With extra care so the log is easily greap-able. |
Beta Was this translation helpful? Give feedback.
-
In the #4804 issue @clebergnu asks for a default log file for nrunner based tests which will have a predefined path, so users will be able to find it more easily and will be able to work with it in their own scripts. In the legacy runner we have this ability because there is just one candidate for default log file the
~/avocado/job-results/latest/test-results/*/debug.log
. In the nrunner the situation is more complicated, because different runners use different files for logs. For example, avocado-instrumented tests usedebug.log
, the exec-test usestdout
andstderr
and vt-runner uses all of them. Now the question is how the user find out which file is the default one.Form discussion with @clebergnu, there are two possible solutions:
debug.log
,stdout
andstderr
.~/avocado/job-results/latest/test-results/*/log | grep stdout
With @clebergnu we incline to the second option, but I created this discussion to know your opinion about this topic, and I will be grateful for your comments, thanks.
Beta Was this translation helpful? Give feedback.
All reactions