configurationengine/source/plugins/symbian/integration-test/export_standalone.py
author m2lahtel
Thu, 21 Oct 2010 16:36:53 +0300
changeset 5 d2c80f5cab53
parent 0 2e8eeb919028
permissions -rw-r--r--
Updated to version 1.2.14

#
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description: 
#

import os
from testautomation.copy_dir import copy_dir

ROOT_PATH = os.path.dirname(os.path.abspath(__file__))

def export_standalone(target_path):
    """
    Export any needed extra data for standalone tests.
    @param target_path: The path where the standalone tests are being exported.
    """
    # Copy CRML DC test data from the CRML plug-in test data
    dirs_to_copy = ['comp_project_1', 'comp_project_2']
    for dir in dirs_to_copy:
        copy_dir(source_dir             = os.path.join(ROOT_PATH, '../ConeCRMLPlugin/CRMLPlugin/tests', dir),
                 target_dir             = os.path.join(target_path, 'testdata/compare/crml_dc', dir),
                 dir_ignore_functions   = [lambda d: d == '.svn'])