Skip to content

Commit

Permalink
Fixed testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Nov 23, 2023
1 parent 040552e commit 281f4ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/lib/agama/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def valid?
def collect_logs(path: nil)
opt = "-d #{path}" if !path.nil? && !path.empty?

%x(agama logs store #{opt}).strip
`agama logs store #{opt}`.strip
end

# Whatever has to be done at the end of installation
Expand Down
2 changes: 1 addition & 1 deletion service/test/agama/manager_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
describe "#collect_logs" do
it "collects the logs and returns the path to the archive" do
# %x returns the command output including trailing \n
expect(x).to receive(:`)
expect(subject).to receive(:`)
.with("agama logs store ")
.and_return("/tmp/y2log-hWBn95.tar.xz\n")

Expand Down

0 comments on commit 281f4ca

Please sign in to comment.