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

Tests for dnf debug-dump / dnf-debug-restore #854

Merged
merged 5 commits into from Jun 25, 2020
Merged

Conversation

m-blaha
Copy link
Member

@m-blaha m-blaha commented Jun 18, 2020

The functionality will also be used for file content matching.
This is done the same way as stdout / stderr matching we already have.
@kontura kontura self-assigned this Jun 23, 2020
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
Copy link
Contributor

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.

Copy link
Member Author

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
Copy link
Contributor

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.

Copy link
Member Author

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
Copy link
Contributor

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.

Copy link
Member Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here as well.

@pep8speaks
Copy link

Hello @m-blaha! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 36:1: W391 blank line at end of file

@m-blaha
Copy link
Member Author

m-blaha commented Jun 25, 2020

Alesi, thanks for the review. The issues should be fixed now.

@kontura
Copy link
Contributor

kontura commented Jun 25, 2020

The tests pass now, merging.
Thanks!

@kontura kontura merged commit a3ff3e3 into master Jun 25, 2020
@m-blaha m-blaha deleted the mblaha/debug-restore branch December 8, 2020 08:07
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

Successfully merging this pull request may close these issues.

None yet

3 participants