Skip to content

Commit

Permalink
behave
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Nov 26, 2021
1 parent 3f21209 commit 37addb7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/features/steps/step_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ def step_impl(context, nodelist):
assert online(context, nodelist) is True


@given('Run "{cmd}" OK')
def step_impl(context, cmd):
rc, _, = run_command(context, cmd)
assert rc == 0


@then('Run "{cmd}" OK')
def step_impl(context, cmd):
rc, _, = run_command(context, cmd)
Expand Down

0 comments on commit 37addb7

Please sign in to comment.