16 # |
16 # |
17 ## |
17 ## |
18 # @author Teemu Rytkonen |
18 # @author Teemu Rytkonen |
19 |
19 |
20 import sys, os, shutil, unittest |
20 import sys, os, shutil, unittest |
21 import __init__ |
21 |
22 from testautomation.base_testcase import BaseTestCase |
22 from testautomation.base_testcase import BaseTestCase |
23 |
23 |
24 ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) |
24 ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) |
25 TEMP_DIR = os.path.normpath(os.path.join(ROOT_PATH, 'temp/crml_dc')) |
25 TEMP_DIR = os.path.normpath(os.path.join(ROOT_PATH, 'temp/crml_dc')) |
26 |
26 |
27 if sys.platform == "win32": |
27 if sys.platform == "win32": |
28 CONE_SCRIPT = "cone.cmd" |
28 CONE_SCRIPT = "cone.cmd" |
29 else: |
29 else: |
30 CONE_SCRIPT = "cone.sh" |
30 CONE_SCRIPT = "cone" |
31 |
31 |
32 def get_cmd(action='compare'): |
32 def get_cmd(action='compare'): |
33 """Return the command used to run the ConE sub-action""" |
33 """Return the command used to run the ConE sub-action""" |
34 if 'CONE_PATH' in os.environ: |
34 if 'CONE_PATH' in os.environ: |
35 CONE_CMD = os.path.join(os.environ['CONE_PATH'], CONE_SCRIPT) |
35 CONE_CMD = os.path.join(os.environ['CONE_PATH'], CONE_SCRIPT) |