aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/libraries/python/DUTSetup.py6
1 files changed, 4 insertions, 2 deletions
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()