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

- Make content check fro dracut config version specific #287

Merged
merged 2 commits into from
Jan 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import pytest


def test_sles_ec2_dracut_conf(host, get_release_value, determine_architecture):
if determine_architecture() != 'X86_64':
pytest.skip('Only x86_64 architecture is tested.')

needed_drivers = (
'ena',
'nvme',
'nvme-core',
'virtio',
'virtio_scsi',
'xen-blkfront',
'xen-netfront'
)
version = get_release_value('VERSION')
assert version

dracut_conf = host.file('/etc/dracut.conf.d/07-aws-type-switch.conf')

assert dracut_conf.exists
assert dracut_conf.is_file

for driver in needed_drivers:
if (
driver.startswith('virtio') and
(version.startswith('15') or version == '12-SP5')
):
continue
assert dracut_conf.contains(driver)

This file was deleted.