Browse Source

Move pertest installation directories under FWROOT/installs/pertest/<test-name>

Hamilton Turner 11 years ago
parent
commit
1c5d54adb5
2 changed files with 6 additions and 7 deletions
  1. 2 3
      toolset/benchmark/framework_test.py
  2. 4 4
      toolset/setup/linux/installer.py

+ 2 - 3
toolset/benchmark/framework_test.py

@@ -910,10 +910,9 @@ class FrameworkTest:
     self.runTests = runTests
     self.runTests = runTests
     self.fwroot = benchmarker.fwroot
     self.fwroot = benchmarker.fwroot
     
     
+    self.install_root="%s/%s" % (self.fwroot, "installs")
     if benchmarker.install_strategy is 'pertest':
     if benchmarker.install_strategy is 'pertest':
-      self.install_root = "%s/%s" % (directory, "installs")
-    else:
-      self.install_root = "%s/%s" % (self.fwroot, "installs")
+      self.install_root="%s/pertest/%s" % (self.install_root, name)
 
 
     self.__dict__.update(args)
     self.__dict__.update(args)
 
 

+ 4 - 4
toolset/setup/linux/installer.py

@@ -62,11 +62,11 @@ class Installer:
         else:
         else:
             logging.info("Running installation for %s"%test_name)
             logging.info("Running installation for %s"%test_name)
 
 
-            # Find installation directory e.g. FWROOT/go/installs
+            # Find installation directory 
+            # e.g. FWROOT/installs or FWROOT/installs/pertest/<test-name>
+            test_install_dir="%s/%s" % (self.fwroot, self.install_dir)
             if self.strategy is 'pertest':
             if self.strategy is 'pertest':
-              test_install_dir="%s/%s" % (test_dir, self.install_dir)
-            else:
-              test_install_dir="%s/%s" % (self.fwroot, self.install_dir)
+              test_install_dir="%s/pertest/%s" % (test_install_dir, test_name)
             test_rel_install_dir=setup_util.path_relative_to_root(test_install_dir)
             test_rel_install_dir=setup_util.path_relative_to_root(test_install_dir)
             if not os.path.exists(test_install_dir):
             if not os.path.exists(test_install_dir):
               os.makedirs(test_install_dir)
               os.makedirs(test_install_dir)