summaryrefslogtreecommitdiffstats
path: root/tools/hugepages.py
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2016-05-04 13:59:42 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-05-04 13:59:42 +0000
commit89864cbc856cd5cf3369429d64465615097be604 (patch)
tree2cc78b4036aaf2d2e6ba1c944a5416d402007107 /tools/hugepages.py
parent6c888fd41de8889891c163d4757099aec84b34d8 (diff)
parent9bfdb9f76d95cc0d9e8266f85e244f0fac8f069d (diff)
Merge "bugfix: Fix creation of vsperfenv in Ubuntu"
Diffstat (limited to 'tools/hugepages.py')
-rw-r--r--tools/hugepages.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/hugepages.py b/tools/hugepages.py
index 71535922..3a434d6e 100644
--- a/tools/hugepages.py
+++ b/tools/hugepages.py
@@ -78,7 +78,8 @@ def mount_hugepages():
return
if not os.path.exists(settings.getValue('HUGEPAGE_DIR')):
- os.makedirs(settings.getValue('HUGEPAGE_DIR'))
+ tasks.run_task(['sudo', 'mkdir', settings.getValue('HUGEPAGE_DIR')], _LOGGER,
+ 'Creating directory ' + settings.getValue('HUGEPAGE_DIR'), True)
try:
tasks.run_task(['sudo', 'mount', '-t', 'hugetlbfs', 'nodev',
settings.getValue('HUGEPAGE_DIR')],