Skip to content

Commit 7c63978

Browse files
bingwang-msgshemesh2
authored andcommitted
Fix packets_aging.py not found issue (sonic-net#18104)
* Restore fixture disable_packet_aging Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
1 parent e0b796d commit 7c63978

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/qos/tunnel_qos_remap_base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,11 @@ def disable_packet_aging(duthosts):
335335
for duthost in duthosts:
336336
asic = duthost.get_asic_name()
337337
if 'spc' in asic:
338+
# Ignore errors if the script is not found in syncd container as it may be removed
339+
# by swap_syncd
338340
logger.info("Enable Mellanox packet aging")
339-
duthost.command("docker exec syncd python /packets_aging.py enable")
340-
duthost.command("docker exec syncd rm -rf /packets_aging.py")
341+
duthost.command("docker exec syncd python /packets_aging.py enable", module_ignore_errors=True)
342+
duthost.command("docker exec syncd rm -rf /packets_aging.py", module_ignore_errors=True)
341343

342344

343345
def _create_ssh_tunnel_to_syncd_rpc(duthost):

0 commit comments

Comments
 (0)