Skip to content

Commit aefb58d

Browse files
committed
check test cmds enabled
1 parent e66abf5 commit aefb58d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/unified_format.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,9 @@ def run_entity_operation(self, spec):
743743
self.entity_map[save_as_entity] = result
744744

745745
def __set_fail_point(self, client, command_args):
746+
if not client_context.test_commands_enabled:
747+
self.skipTest('Test commands must be enabled')
748+
746749
cmd_on = SON([('configureFailPoint', 'failCommand')])
747750
cmd_on.update(command_args)
748751
client.admin.command(cmd_on)

0 commit comments

Comments
 (0)