Skip to content

Commit

Permalink
Update the spec to accept the failure
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Jan 30, 2025
1 parent 5c2056b commit 61a0981
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/acceptance/ldap_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
required: [
/Successfully queried/
]
},
linux: {
known_failures: [
/Auxiliary aborted due to failure: not-found/
]
}
}
},
Expand Down Expand Up @@ -187,7 +192,7 @@ def with_test_harness(module_test)
# Skip any ignored lines from the validation input
validated_lines = test_result.lines.reject do |line|
is_acceptable = known_failures.any? do |acceptable_failure|
is_matching_line = is_matching_line.value.is_a?(Regexp) ? line.match?(acceptable_failure.value) : line.include?(acceptable_failure.value)
is_matching_line = acceptable_failure.value.is_a?(Regexp) ? line.match?(acceptable_failure.value) : line.include?(acceptable_failure.value)
is_matching_line &&
acceptable_failure.if?(test_environment)
end || line.match?(/Passed: \d+; Failed: \d+/)
Expand Down

0 comments on commit 61a0981

Please sign in to comment.