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

Fix libvirt ovmf firmware integration test on non-Ubuntu #226

Merged
merged 3 commits into from Nov 10, 2017

Conversation

dmacvicar
Copy link
Owner

On SUSE systems, these paths are different.

In order to reuse the code that looks for the right files, we make the template and no-template case sub-tests of the main test containing the lookup code.

Also, if the files are not there, skip the test.

On SUSE systems, these paths are different.
In order to reuse the code that looks for the right files, we
make the template and no-template case sub-tests of the main test
containing the lookup code.
Also, if the files are not there, skip the test.
subtestAccLibvirtDomain_FirmwareNoTemplate(t, nvram_path, firmware)
})
t.Run("With Template", func(t *testing.T) {
subtestAccLibvirtDomain_FirmwareTemplate(t, nvram_path, firmware, template)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nitpick can we avoid to use nvram_path and use camelCase ```nvramPath` (will make golint happy)

Repository owner deleted a comment from coveralls Nov 10, 2017
Repository owner deleted a comment from coveralls Nov 10, 2017
Repository owner deleted a comment from coveralls Nov 10, 2017
Repository owner deleted a comment from coveralls Nov 10, 2017
Repository owner deleted a comment from coveralls Nov 10, 2017
Repository owner deleted a comment from coveralls Nov 10, 2017
@monstermunchkin monstermunchkin merged commit 6284d74 into master Nov 10, 2017
@dmacvicar dmacvicar deleted the fix_firmware_test_suse branch November 15, 2017 16:19
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