bugfix: Fix creation of vsperfenv in Ubuntu 57/13657/1
authorMartin Klozik <martinx.klozik@intel.com>
Wed, 4 May 2016 12:21:14 +0000 (13:21 +0100)
committerMartin Klozik <martinx.klozik@intel.com>
Wed, 4 May 2016 12:29:55 +0000 (13:29 +0100)
Wrong version of virtualenv was executed in Ubuntu
specific script. So python modules could not be installed
and vsperf was not working.
Hugepages mount point is newly created inside
sudo environment to avoid issues with permissions.

Change-Id: I4f5afc22bceb2eebbf018c42f42b7074a93e2293
JIRA: VSPERF-292
Signed-off-by: Martin Klozik <martinx.klozik@intel.com>
Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com>
systems/ubuntu/14.04/prepare_python_env.sh
tools/hugepages.py

index f9c2def..6ef8680 100755 (executable)
@@ -23,7 +23,7 @@ fi
 
 # enable virtual environment in a subshell, so QEMU build can use python 2.7
 
-(virtualenv-3.4 "$VSPERFENV_DIR"
+(virtualenv "$VSPERFENV_DIR"
 source "$VSPERFENV_DIR"/bin/activate
 pip install -r ../requirements.txt
-pip install pylint)
\ No newline at end of file
+pip install pylint)
index 7153592..3a434d6 100644 (file)
@@ -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')],