-
Notifications
You must be signed in to change notification settings - Fork 59
[IN DISCUSSION, NOT MERGE]case-lib: redirect nohup stdout and stderr to /dev/null #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
If only redirect nohup stdout to /dev/null, we will see 'nohup: redirecting stderr to stdout' message from nohup when manually run './check-kmod-load-unload.sh -l1'. Signed-off-by: Amery Song <chao.song@intel.com>
|
LGTM |
Bin-QA
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't this this patch will meet your requirement, because
when you add '&' for nohup command it will create 'nohup.out' file for stdout & stderr
@Bin-QA Any suggestions? because “nohup: redirecting stderr to stdout” in the test log, which makes the log ugly, and I test this pr on helios, the output of nohup disappeared. |
because you will create 'nohup.out' at your current folder |
|
@aiChaoSONG will this bring us trouble with debug? As error message is gone |
|
@Bin-QA When we run sof-test, the repo is cloned to local, so all command is running locally, then why we need a nohup here? |
|
@aiChaoSONG because here need recreate pulseaudio command, |
Test logs are not meant to be beautiful, they have to be informative and not too noisy. That does not seem like a lot of noise, is it? Logs that are really noisy should be redirected to a file, tests should almost never redirect anything to >/dev/null. In case of a failure any information could be useful. EDIT: I detailed why I think I have a larger question: why is this script not using |
OK, this doc is obsolete, sorry. I found this more accurate one, tested it and verified it is up to date wrt. Ubuntu 18.04 Why is the nohup needed at all? I ran Also wondering why use Why use Why try to extract command line parameters from Also why manually restart pulseaudio after restoring the autospawn which already starts it when needed? |
|
@Bin-QA Could you please help to answer Marc's questions? |
|
@marc-hb because we are not sure target machine how to configure the pulseaudio |
|
I'm not sure I follow, are you afraid some operating system(s) hide(s) some pulseaudio --parameters outside the normal pulseaudio configuration files? How many different operating system versions is |
|
@aiChaoSONG @macchian any update? Do we still need this |
|
No, let's close this, the issue I want to address by this PR is not reproduced. maybe already fixed by other PR |
If only redirect nohup stdout to /dev/null, we will see
'nohup: redirecting stderr to stdout' message from nohup
when manually run './check-kmod-load-unload.sh -l1'.
Which will make the test log looks ugly.
Signed-off-by: Amery Song chao.song@intel.com