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

Add Fedora 39 support #347

Merged
merged 2 commits into from
Nov 27, 2023
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
2 changes: 1 addition & 1 deletion lib/beaker-hostgenerator/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@
yield %w[aix73-POWER aix-7.3-power]

# Fedora
(19..38).each do |release|
(19..39).each do |release|

Check warning on line 1081 in lib/beaker-hostgenerator/data.rb

View check run for this annotation

Codecov / codecov/patch

lib/beaker-hostgenerator/data.rb#L1081

Added line #L1081 was not covered by tests
# 32 bit support was dropped in Fedora 31
yield ["fedora#{release}-32", "fedora-#{release}-i386"] if release < 31

Expand Down
7 changes: 2 additions & 5 deletions spec/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ def generate_result(name, opts)
stderr = opts.has_key?(:stderr) ? opts[:stderr] : name
exit_code = opts.has_key?(:exit_code) ? opts[:exit_code] : 0
exit_code = [exit_code].flatten
allow(result).to receive(:stdout).and_return(stdout)
allow(result).to receive(:stderr).and_return(stderr)
allow(result).to receive_messages(stdout: stdout, stderr: stderr)
allow(result).to receive(:exit_code).and_return(*exit_code)
result
end
Expand All @@ -79,9 +78,7 @@ def make_host(name, host_hash)

host = make_opts.merge(host_hash)

allow(host).to receive(:name).and_return(name)
allow(host).to receive(:to_s).and_return(name)
allow(host).to receive(:exec).and_return(generate_result(name, host_hash))
allow(host).to receive_messages(name: name, to_s: name, exec: generate_result(name, host_hash))
host
end

Expand Down