X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FCoreDumpUtil.py;h=b70afa858e60c65c62caecb538d532f9955d1c4f;hb=3f1b9ee3ca8c05f93dc0ee95c9caf4d203b70d6c;hp=97948ad28aef2f36c7843e75d5784d1f4857f75d;hpb=7829fea4a2c8936513fa95215b7d84997f814a69;p=csit.git diff --git a/resources/libraries/python/CoreDumpUtil.py b/resources/libraries/python/CoreDumpUtil.py index 97948ad28a..b70afa858e 100644 --- a/resources/libraries/python/CoreDumpUtil.py +++ b/resources/libraries/python/CoreDumpUtil.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Cisco and/or its affiliates. +# Copyright (c) 2024 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -139,11 +139,11 @@ class CoreDumpUtil: for node in nodes.values(): if node[u"type"] == NodeType.DUT: command = ( - f"for f in {Constants.CORE_DUMP_DIR}/*.core; do " - f"sudo gdb /usr/bin/vpp ${{f}} " - f"-ex 'source -v {Constants.REMOTE_FW_DIR}" - f"/resources/tools/scripts/gdb-commands' -ex quit; " - f"sudo rm -f ${{f}}; done" + f"for f in {Constants.CORE_DUMP_DIR}/*.core; do" + f" sleep 10; sudo gdb /usr/bin/vpp ${{f}}" + f" -ex 'source -v {Constants.REMOTE_FW_DIR}" + f"/resources/tools/scripts/gdb-commands' -ex quit;" + f" sudo rm -f ${{f}}; done" ) try: exec_cmd_no_error(node, command, timeout=3600)