-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add test for log processing #1324
Conversation
f20e1c3
to
864c08c
Compare
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.
Looks good to me - thanks! :)
Just added some suggestions for using fragments to provide generic/boilerplate bits in the kickstart via kickstart fragments. :)
864c08c
to
66e8289
Compare
@M4rtinK thanks for the review. I have updated the code following your guidelines. Also I have split test cases in half: check if the util exists, call the util and expect |
/test-tmt |
/test-os-variants |
Agreed with the split - like this we can easily see from the logs what exactly went wrong, nice! :) As for validation - it creates a tarball, right ? I guess we could check the file exists and is of non-zero size ? But I leave it up to you, given we already check the return code. :) |
66e8289
to
c10100d
Compare
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.
Nice work.
We should perhaps clear up the TESTTYPE though (as suggested above)
Also I wouldn't create an include (lib) script at this point where the functions are used only in a single test. But if we create it I'd keep a (silent) convention of having -lib-
in the name, ideally with post
and nochroot
hint. But this can be done updated / discussed in a followup PR. Having more tests using the shared script would also make easier to decide where to put the functions or how to name a new file if we create such.
c10100d
to
f97189f
Compare
Thanks for the review @rvykydal
I like this idea. On my todo list there is a small refactoring of the repo (which includes making default repo README more visible). I would like to address this '-lib-' idea as a part of this refactoring. |
f97189f
to
10689d3
Compare
'/usr/libexec/anaconda/log-capture' is an util to generate runtime logs. This commit adds test validating output of this util.
10689d3
to
7ffc167
Compare
/test-os-variants |
/test-tmt |
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.
Looks good to me, thank you.
'/usr/libexec/anaconda/log-capture' is an util to generate runtime logs. This commit adds test validating output of this util.