diff options
author | Vratko Polak <vrpolak@cisco.com> | 2024-03-18 15:43:12 +0100 |
---|---|---|
committer | Vratko Polak <vrpolak@cisco.com> | 2024-03-25 13:12:51 +0000 |
commit | 3f1b9ee3ca8c05f93dc0ee95c9caf4d203b70d6c (patch) | |
tree | 07a74e491d96e861029c02830e5878ebdfc2e89d /resources/libraries | |
parent | 230044632667a3eb7794218a6ba3e2fa2c9b71b4 (diff) |
Revert "fix(core): Disable core dbg analysis"
This reverts commit ffca8b8655c772fc6273702cae2151e7ac7a846d.
+ Add 10 second sleep, could help if core is big.
Change-Id: Id2b3199737f8c50cee713e8626dce1bfa72ea4e1
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries')
-rw-r--r-- | resources/libraries/python/CoreDumpUtil.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/resources/libraries/python/CoreDumpUtil.py b/resources/libraries/python/CoreDumpUtil.py index 09a5e35254..b70afa858e 100644 --- a/resources/libraries/python/CoreDumpUtil.py +++ b/resources/libraries/python/CoreDumpUtil.py @@ -1,4 +1,4 @@ -# Copyright (c) 2023 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,12 +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 " - # Causing issues - #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) |