configurationengine/build-scripts/export_bat.py
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
child 5 d2c80f5cab53
equal deleted inserted replaced
2:87cfa131b535 3:e7e0ae78773e
    28 assert os.path.exists(SOURCE_ROOT)
    28 assert os.path.exists(SOURCE_ROOT)
    29 assert os.path.exists(SCRIPTS_SOURCE_ROOT)
    29 assert os.path.exists(SCRIPTS_SOURCE_ROOT)
    30 assert os.path.exists(PLUGIN_SOURCE_ROOT)
    30 assert os.path.exists(PLUGIN_SOURCE_ROOT)
    31 assert os.path.exists(TESTAUTOMATION_ROOT)
    31 assert os.path.exists(TESTAUTOMATION_ROOT)
    32 
    32 
    33 sys.path.append(PLUGIN_SOURCE_ROOT)
    33 
    34 import plugin_utils
       
    35 
    34 
    36 sys.path.append(TESTAUTOMATION_ROOT)
    35 sys.path.append(TESTAUTOMATION_ROOT)
    37 import testautomation
    36 import testautomation
    38 from testautomation.copy_dir import copy_dir
    37 from testautomation.copy_dir import copy_dir
    39 
    38 from testautomation import plugin_utils
    40 import utils
    39 import utils
    41 utils.setup_logging('export_bat.log')
    40 utils.setup_logging('export_bat.log')
    42 
    41 
    43 
    42 
    44 def read_export_function_from_file(file_path):
    43 def read_export_function_from_file(file_path):
   122     # --------------------------------------
   121     # --------------------------------------
   123     # Export plug-in integration test files
   122     # Export plug-in integration test files
   124     # --------------------------------------
   123     # --------------------------------------
   125     
   124     
   126     log.info("Exporting plug-in integration test files...")
   125     log.info("Exporting plug-in integration test files...")
   127     subpaths_by_package = plugin_utils.find_plugin_package_subpaths('integration-test', PLUGIN_PACKAGE)
   126     subpaths_by_package = plugin_utils.find_plugin_package_subpaths(PLUGIN_SOURCE_ROOT, 'integration-test', PLUGIN_PACKAGE)
   128     for package_name, tests_path in subpaths_by_package:
   127     for package_name, tests_path in subpaths_by_package:
   129         log.debug("  Package: %s" % package_name)
   128         log.debug("  Package: %s" % package_name)
   130         log.debug("  Path:    %s" % tests_path)
   129         log.debug("  Path:    %s" % tests_path)
   131         
   130         
   132         log.debug("  Copying test files...")
   131         log.debug("  Copying test files...")