Skip to content

Commit

Permalink
Fixed ok-to-fail-fips to correctly return args
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-redpanda committed Mar 28, 2024
1 parent 386057f commit 44c3280
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ducktape/mark/_mark.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,13 @@ def running_fips() -> bool:

return False

if len(args) == 1 and len(kwargs) == 0 and running_fips():
if len(args) == 1 and len(kwargs) == 0:
# this corresponds to the usage of the decorator with no arguments
# @ok_to_fail_fips
# def test_function:
# ...
Mark.mark(args[0], OkToFailFIPS())
if running_fips():
Mark.mark(args[0], OkToFailFIPS())
return args[0]


Expand Down

0 comments on commit 44c3280

Please sign in to comment.