From 77e76813afb5418f7c294fe433805620396d3fcf Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Mon, 28 Oct 2024 13:26:16 +0100 Subject: fix(core): Ubuntu 24.04 Signed-off-by: Peter Mikus Change-Id: If7e33a924ad347eb9396609010acf763b3a71f15 --- resources/libraries/python/DUTSetup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'resources/libraries/python/DUTSetup.py') diff --git a/resources/libraries/python/DUTSetup.py b/resources/libraries/python/DUTSetup.py index 64f3b4317c..bc8af372df 100644 --- a/resources/libraries/python/DUTSetup.py +++ b/resources/libraries/python/DUTSetup.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: @@ -631,7 +631,9 @@ class DUTSetup: """ if not hugesize: hugesize = "$(grep Hugepagesize /proc/meminfo | awk '{ print $2 }')" - command = f"cat /sys/kernel/mm/hugepages/hugepages-{hugesize}kB/*" + command = ( + f"cat /sys/kernel/mm/hugepages/hugepages-{hugesize}kB/*hugepages*" + ) stdout, _ = exec_cmd_no_error(node, command) try: line = stdout.splitlines() -- cgit 1.2.3-korg