Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
w1nda committed Dec 26, 2024
1 parent 079c34a commit 8376038
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/wol/test_wol.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def test_invalid_password(
duthost.shell("wol %s %s -b -p %s" % (random_dut_port, target_mac, password))
except Exception as e:
exception_catched = True
pytest_assert("invalid password" in e.results['stderr'], "Unexpected exception %s" % str(e))
pytest_assert("invalid password" in e.results['stderr'].lower(), "Unexpected exception %s" % str(e))
pytest_assert(exception_catched, "No exception catched")


Expand Down Expand Up @@ -475,7 +475,7 @@ def test_invalid_interval(
logging.info("Test with random dut port %s and ptf port index %s" % (random_dut_port, random_ptf_port))
exception_catched = False
try:
duthost.shell("wol %s %s -b -i %s" % (random_dut_port, target_mac, invalid_interval))
duthost.shell("wol %s %s -b -i %s -c 1" % (random_dut_port, target_mac, invalid_interval))
except Exception as e:
exception_catched = True
pytest_assert(r'Invalid value for "-i": 2001 is not in the valid range of 0 to 2000.' in e.results['stderr']
Expand All @@ -495,7 +495,7 @@ def test_invalid_count(
logging.info("Test with random dut port %s and ptf port index %s" % (random_dut_port, random_ptf_port))
exception_catched = False
try:
duthost.shell("wol %s %s -b -c %s" % (random_dut_port, target_mac, invalid_count))
duthost.shell("wol %s %s -b -c %s -i 1000" % (random_dut_port, target_mac, invalid_count))
except Exception as e:
exception_catched = True
pytest_assert(r'Invalid value for "-c": 10 is not in the valid range of 1 to 5.' in e.results['stderr'] or
Expand Down

0 comments on commit 8376038

Please sign in to comment.