configurationengine/source/plugins/common/integration-test/export_standalone.py
changeset 3 e7e0ae78773e
equal deleted inserted replaced
2:87cfa131b535 3:e7e0ae78773e
       
     1 #
       
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description: 
       
    15 #
       
    16 
       
    17 import os
       
    18 from testautomation.copy_dir import copy_dir
       
    19 
       
    20 ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
       
    21 
       
    22 def export_standalone(target_path):
       
    23     """
       
    24     Export any needed extra data for standalone tests.
       
    25     @param target_path: The path where the standalone tests are being exported.
       
    26     """
       
    27     copy_dir(source_dir             = os.path.join(ROOT_PATH, '../ConeRulePlugin/ruleplugin/evals/tests/layer_filtering_project'),
       
    28              target_dir             = os.path.join(target_path, 'testdata/uses_layer_test_project'),
       
    29              dir_ignore_functions   = [lambda d: d == '.svn'])