dovetail tool: upstream functest env preparation and CLI adaption 55/24455/1
authorxudan <xudan16@huawei.com>
Thu, 17 Nov 2016 02:11:30 +0000 (02:11 +0000)
committerxudan <xudan16@huawei.com>
Thu, 17 Nov 2016 02:11:30 +0000 (02:11 +0000)
1. Functest has changed it's directory structure, so cmds in
   functest_config.yml cannot run successfully.
2. Use functest CLI to prepare and run test cases instead of running
   prepare_env.py or run_tests.py.

JIRA: DOVETAIL-40

Change-Id: I7907dd70fd671efbed5f4132c0d76d6eb90b63eb
Signed-off-by: xudan <xudan16@huawei.com>
dovetail/conf/functest_config.yml

index ef2b7fb..d32fe87 100644 (file)
@@ -10,8 +10,8 @@ functest:
       - 'echo test for precondition'
   testcase:
     cmds:
-      - 'python /home/opnfv/repos/functest/ci/prepare_env.py start'
-      - 'python /home/opnfv/repos/functest/ci/run_tests.py -t {{script_testcase}} -r'
+      - 'functest env prepare'
+      - 'functest testcase run {{script_testcase}}'
   post_condition:
     cmds:
       - ''