fix(core): Ubuntu 24.04 66/41766/1
authorPeter Mikus <[email protected]>
Mon, 28 Oct 2024 12:26:16 +0000 (13:26 +0100)
committerPeter Mikus <[email protected]>
Mon, 28 Oct 2024 12:26:16 +0000 (13:26 +0100)
Signed-off-by: Peter Mikus <[email protected]>
Change-Id: If7e33a924ad347eb9396609010acf763b3a71f15

resources/libraries/python/DUTSetup.py

index 64f3b43..bc8af37 100644 (file)
@@ -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()