Browse Source

Find tests in new and old directory structure

Hamilton Turner 11 years ago
parent
commit
8ea17f7458
1 changed files with 6 additions and 3 deletions
  1. 6 3
      toolset/benchmark/utils.py

+ 6 - 3
toolset/benchmark/utils.py

@@ -50,9 +50,12 @@ def gather_tests(include = [], exclude=[], benchmarker=None):
     
     benchmarker = Benchmarker(defaults)
 
-  # Assume we are running from FrameworkBenchmarks
-  config_files = glob.glob('*/benchmark_config')
-
+  
+  # Search in both old and new directories
+  fwroot = os.environ['FWROOT']
+  config_files = glob.glob("%s/*/benchmark_config" % fwroot) 
+  config_files.extend(glob.glob("%s/frameworks/*/*/benchmark_config" % fwroot))
+  
   tests = []
   for config_file_name in config_files:
     config = None