diff options
author | xudan <xudan16@huawei.com> | 2018-03-04 22:30:34 -0500 |
---|---|---|
committer | Georg Kunz <georg.kunz@ericsson.com> | 2018-03-06 10:28:38 +0000 |
commit | ed4e729d8e61b8bbfad51f294dd170c6c680dc43 (patch) | |
tree | 4127f8ff6ea33004f3327dbf0cd054aab9704a4d /etc/userconfig | |
parent | ead4a2bee15cf8c5891497c23592f8fa4fc2dc91 (diff) |
Bugfix: it crashes when check_tc_result returns None
The function 'check_tc_result' may return 'None'.
In this case it will throw an exception because of
https://github.com/opnfv/dovetail/blob/master/dovetail/run.py#L65
The exception is like
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/dovetail/run.py", line 339, in <module>
main()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in _call_
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/dovetail/run.py", line 304, in main
duration = run_test(testsuite_yaml, testarea, logger, kwargs)
File "/usr/local/lib/python2.7/dist-packages/dovetail/run.py", line 65, in run_test
if stop_on_fail['criteria'] == "FAIL" and kwargs['stop']:
TypeError: 'NoneType' object has no attribute '_getitem_'
JIRA: DOVETAIL-622
Change-Id: I9e612b380c3dfb148692074a3bf8eb31875213ac
Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'etc/userconfig')
0 files changed, 0 insertions, 0 deletions