aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/QemuUtils.py
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-12-19 19:20:20 +0000
committerPeter Mikus <pmikus@cisco.com>2020-01-20 09:01:31 +0000
commit2b3a18b05be40ceda745c74ec655ef548100d769 (patch)
tree485e03fa1f555687821555456b0ee55547578765 /resources/libraries/python/QemuUtils.py
parent87f81f123c054908df6770f11a947b9fe6ab0e93 (diff)
FIX: Hugepages should be detected also from overcommit
Change-Id: I36ec9d61f775791ad0632a579c4921889d1f5acf Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python/QemuUtils.py')
-rw-r--r--resources/libraries/python/QemuUtils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/libraries/python/QemuUtils.py b/resources/libraries/python/QemuUtils.py
index f31e153bd2..2b08429d84 100644
--- a/resources/libraries/python/QemuUtils.py
+++ b/resources/libraries/python/QemuUtils.py
@@ -611,7 +611,7 @@ class QemuUtils:
message = f"QEMU: Start failed on {self._node[u'host']}!"
try:
DUTSetup.check_huge_page(
- self._node, u"/dev/hugepages", self._opt.get(u"mem"))
+ self._node, u"/dev/hugepages", int(self._opt.get(u"mem")))
exec_cmd_no_error(
self._node, cmd_opts, timeout=300, sudo=True, message=message