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
Tests for dnf debug-dump / dnf-debug-restore #854
Conversation
The functionality will also be used for file content matching.
This is done the same way as stdout / stderr matching we already have.
kernel-0:4.19.1-fc29.x86_64 | ||
kernel-0:4.20.1-fc29.src | ||
kernel-0:4.20.1-fc29.x86_64 | ||
test-install-0:1-fc29.src |
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.
This is the only place where the test-install package is used and since there is a lot of other packages listed here I think we don't really need it.
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.
Right. It is a left-over of previous version.
kernel-0:4\.19\.1-fc29\.x86_64 | ||
kernel-0:4\.20\.1-fc29\.x86_64 | ||
%%%%REPOS | ||
%debug-plugin - file:///home/mblaha/work/debug-restore-bz1844533/ci-dnf-stack/dnf-behave-tests/fixtures/repos/debug-plugin |
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 believe this is your local path and it doesn't match in general. We could hard code the path from our container %debug-plugin - file:///opt/behave/fixtures/repos/debug-plugin
, but I think we should use another regex here, since the tests can be run in different setups as well.
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.
Oh, sorry. I'll fix it.
test-replace-0:3-fc29.src | ||
test-replace-0:3-fc29.x86_64 | ||
%%%%RPMDB VERSIONS | ||
all: 2:9a5b819daf813e63ecfd470f07bcacb534b506d5 |
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.
This hash doesn't work when I tried to run it, I don't think we can rely on it being always the same, there is too many moving parts.
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.
Yes, I was kind of afraid of this. I'll replace the particular hash with regexp.
kernel-0:4\.19\.1-fc29\.x86_64 | ||
kernel-0:4\.20\.1-fc29\.x86_64 | ||
%%%%RPMDB VERSIONS | ||
all: 2:9a5b819daf813e63ecfd470f07bcacb534b506d5 |
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.
Here as well.
6ca5ce3
to
cf38cbd
Compare
Hello @m-blaha! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
|
Alesi, thanks for the review. The issues should be fixed now. |
The tests pass now, merging. |
requires: rpm-software-management/dnf-plugins-core#402