Skip to content
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

rlFileSubmit prints stuff to stdout #40

Closed
AloisMahdal opened this issue May 15, 2019 · 3 comments
Closed

rlFileSubmit prints stuff to stdout #40

AloisMahdal opened this issue May 15, 2019 · 3 comments

Comments

@AloisMahdal
Copy link
Contributor

rlFileSubmit will print things like "Uploading ... .done" to stdout, which breaks use cases where stdout is being generated and needs to have proper format. (E.g. meta-programming.)

Reproduced with local build: beakerlib-1.17-13.el7bkr

@hegerj
Copy link
Collaborator

hegerj commented May 16, 2019

This is not in control of rlFileSubmit / beakerlib. Beakerlib calls script supplied by harness:
/usr/bin/rhts-submit-log in case of beah
/usr/bin/rstrnt-report-log in case of restraint

In this case the the printed line is from restraint (you can find it in file src/cmd_log.c in restraint source code). You can ask their devels to change behaviour.

@hegerj hegerj closed this as completed May 16, 2019
@sopos
Copy link
Member

sopos commented May 16, 2019

One think we could do on our side is to redirect the output of the command to stderr. I'm not sure if that's the correct approach, though.

@AloisMahdal
Copy link
Contributor Author

Thanks, reported to p3ck/restraint.

@sopos, it would be definitely better if restraint did it. I'd leave redirection on beakerlib part only as a workaround in case the fix would take too long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants