add precondition check 69/9369/3
authorkubi <jean.gaoliang@huawei.com>
Fri, 5 Feb 2016 08:48:00 +0000 (08:48 +0000)
committerJörgen Karlsson <jorgen.w.karlsson@ericsson.com>
Mon, 8 Feb 2016 11:12:37 +0000 (11:12 +0000)
commitff5cb9501b155e07fe75f03062217270b9745131
tree604c11f0f80764ab486a7feed164cddde586a87c
parent912fe3bb9877456cb8ef363f9304bfab733eaffd
add precondition check

as we discussed yersterday, for daily jenkins task,
i have a new idea, i add a precondition check and a key parameter in test case,
if environment info(eg. "DEPLOY_SCENARIO") meet the preconditon which was defined in test case ,
this test case will run, if not meet, this test case will skip.

and default is allow all test case to run, so this patch will not influence existing test case.
any comments are welcomed

Change-Id: I4300ac58994d51c0ddb4dd6d58b7191f796ddcee
Signed-off-by: kubi <jean.gaoliang@huawei.com>
tests/opnfv/test_cases/opnfv_yardstick_tc027.yaml
tests/unit/cmd/commands/test_task.py
yardstick/cmd/commands/task.py