equal
deleted
inserted
replaced
|
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 CRML DC test data from the CRML plug-in test data |
|
28 dirs_to_copy = ['comp_project_1', 'comp_project_2'] |
|
29 for dir in dirs_to_copy: |
|
30 copy_dir(source_dir = os.path.join(ROOT_PATH, '../ConeCRMLPlugin/CRMLPlugin/tests', dir), |
|
31 target_dir = os.path.join(target_path, 'testdata/compare/crml_dc', dir), |
|
32 dir_ignore_functions = [lambda d: d == '.svn']) |