-
Notifications
You must be signed in to change notification settings - Fork 42
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
RFE: run-command function or similar #148
Comments
I think that this is now covered by |
I meant something else here. Some function that we could use to run some important commands instead of running them and then checking the output. Such function could also log something useful. E.g. httpd-container uses:
Feel free to check also what I can also imagine that the arguments of this function would be logged to a specific file/variable and when the test case fails, we could return what commands were run, so it could help figuring out a reproducer. IOW, we would not get all the preparation steps, only the important commands. I'm not saying we cannot live with this new function (we're fine without it till today), it could just make the test scripts a bit more clear and output likely more readable. |
Thanks for explanation Honzo, now it makes sense to me and I agree. Let's leave this opened then. |
As suggested in sclorg/httpd-container#94, there could be a generic
ct_run_cmd
function similar to what https://github.com/sclorg/httpd-container/ and some other images use -- such a function might check the output and exit code, might also print some standardized logging etc...A note: we might get some more inspiration in beakerlib where
rlRun
has a similar function.The text was updated successfully, but these errors were encountered: