Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalmer committed Nov 19, 2023
1 parent 5cf71df commit f441b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/features/step_definitions/command_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
next_day_rotated_log = "#{current_log}-#{day_after}.xz"
begin
_, return_code = node.run("xzdec #{next_day_rotated_log} | grep -- #{pattern}")
rescue Scr
rescue ScriptError
_, return_code = node.run("grep -- #{pattern} #{current_log} || xzdec #{rotated_log} | grep -- #{pattern}")
end
raise ScriptError, 'Vendor change option not found in logs' unless return_code.zero?
Expand Down

0 comments on commit f441b08

Please sign in to comment.