[ptf_runner] Add timeout option for ptf test run#2076
Merged
yxieca merged 1 commit intosonic-net:masterfrom Aug 11, 2020
Merged
[ptf_runner] Add timeout option for ptf test run#2076yxieca merged 1 commit intosonic-net:masterfrom
yxieca merged 1 commit intosonic-net:masterfrom
Conversation
Signed-off-by: Neetha John <[email protected]>
daall
reviewed
Aug 10, 2020
daall
approved these changes
Aug 11, 2020
yxieca
approved these changes
Aug 11, 2020
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
utilities: * 4b7335f 2022-11-29 | Add db_migrator_constants.py script to setup.py (sonic-net#2534) (HEAD -> 202205) [Vaibhav Hemant Dixit] * 8a78cf4 2022-11-23 | Port 202012 DB migration changes to newer branches (sonic-net#2515) (HEAD -> 202205) [Vaibhav Hemant Dixit] * 0157086 2022-11-22 | [VXLAN]Fixing traceback in show remotemac when mac moves during command execution (sonic-net#2506) [Sudharsan Dhamal Gopalarathnam] * 1f26c8c 2022-11-17 | avoid printing error if no neighbors are present (sonic-net#2502) [arlakshm] * 2573aae 2022-11-19 | [sfp] Fix issue: Application Advertisement is not well formatted (sonic-net#2491) [Junchao-Mellanox] * 1d96b55 2022-11-10 | [show][muxcable] Catch port Value error exception (sonic-net#2076) (sonic-net#2486) [Isabella de Leon] * 6ed2afb 2022-11-09 | bugfix[2024] vnet route check exit code fix. (sonic-net#2480) [siqbal1986] * d8c49dc 2022-11-17 | Fixed SONIC_CLI_IFACE_MODE=alias show ip|ipv6 route output in default mode issue (sonic-net#2422) [Marty Y. Lok] * 166739e 2022-11-11 | Accept 0 for queue and dscp (sonic-net#2494) (github/202205) [bingwang-ms] Signed-off-by: Ying Xie <[email protected]> Signed-off-by: Ying Xie <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Neetha John [email protected]
Description of PR
Provide a testcase timeout option in ptf runner
Summary:
Fixes # (issue)
Type of change
How did you verify/test it?
Passed the timeout option set to 120 in one of the scripts using ptf runner. Included a sleep of 600s in the testcase. The ptf runner timed out after 120s
E Failed: run module shell failed, Ansible Results =>
E {
E "changed": true,
E "cmd": "ptf --test-dir ptftests pfc_wd.PfcWdTest --platform-dir ptftests --platform remote -t 'port_type='"'"'vlan'"'"';port_src=0;ip_dst=u'"'"'192.168.0.2'"'"';router_mac=u'"'"'74:83:ef:0a:c9:5c'"'"';wd_action='"'"'dontcare'"'"';pkt_count=100;port_dst='"'"'[55]'"'"';queue_index=4' --relax --debug info --log-file /tmp/pfc_wd.PfcWdTest.2020-08-10-20:07:05.log --test-case-timeout 120",
E "delta": "0:02:02.285100",
E "end": "2020-08-10 18:57:49.258519",
E "invocation": {
E "module_args": {
E "_raw_params": "ptf --test-dir ptftests pfc_wd.PfcWdTest --platform-dir ptftests --platform remote -t 'port_type='"'"'vlan'"'"';port_src=0;ip_dst=u'"'"'192.168.0.2'"'"';router_mac=u'"'"'74:83:ef:0a:c9:5c'"'"';wd_action='"'"'dontcare'"'"';pkt_count=100;port_dst='"'"'[55]'"'"';queue_index=4' --relax --debug info --log-file /tmp/pfc_wd.PfcWdTest.2020-08-10-20:07:05.log --test-case-timeout 120",
E "_uses_shell": true,
E "argv": null,
E "chdir": "/root",
E "creates": null,
E "executable": null,
E "removes": null,
E "stdin": null,
E "stdin_add_newline": true,
E "strip_empty_ends": true,
E "warn": true
E }
E },
E "msg": "non-zero return code",
E "rc": 1,
E "start": "2020-08-10 18:55:46.973419",
E "stderr": "WARNING: No route found for IPv6 destination :: (no default route?)\npfc_wd.PfcWdTest ... ERROR\n\n======================================================================\nERROR: pfc_wd.PfcWdTest\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File "ptftests/pfc_wd.py", line 38, in runTest\n time.sleep(600)\n File "/usr/lib/python2.7/dist-packages/ptf/ptfutils.py", line 102, in raise_timeout\n raise Timeout.TimeoutError()\nTimeoutError\n\n----------------------------------------------------------------------\nRan 1 test in 120.001s\n\nFAILED (errors=1)",
E "stderr_lines": [
E "WARNING: No route found for IPv6 destination :: (no default route?)",
E "pfc_wd.PfcWdTest ... ERROR",
E "",
E "======================================================================",
E "ERROR: pfc_wd.PfcWdTest",
E "----------------------------------------------------------------------",
E "Traceback (most recent call last):",
E " File "ptftests/pfc_wd.py", line 38, in runTest",
E " time.sleep(600)",
E " File "/usr/lib/python2.7/dist-packages/ptf/ptfutils.py", line 102, in raise_timeout",
E " raise Timeout.TimeoutError()",
E "TimeoutError",
E "",
E "----------------------------------------------------------------------",
E "Ran 1 test in 120.001s",
E "",
E "FAILED (errors=1)"
E ],
E "stdout": "",
E "stdout_lines": []
E }