| |
@@ -477,6 +477,14 @@
|
| |
results_file = os.path.join(self.arg_data['artifactsdir'],
|
| |
test_playbook, 'taskotron', 'results.yml')
|
| |
log.info('Reporting results from: %s', results_file)
|
| |
+
|
| |
+ if not os.path.exists(results_file):
|
| |
+ raise exc.TaskotronDirectiveError("Results file doesn't exist, "
|
| |
+ 'assuming the task crashed. If you wish to report no results, '
|
| |
+ 'the results file still needs to exist - consult '
|
| |
+ 'documentation. Expected results file location: %s' %
|
| |
+ results_file)
|
| |
+
|
| |
rdb = resultsdb_directive.ResultsdbDirective()
|
| |
rdb.process(params={"file": results_file}, arg_data=self.arg_data)
|
| |
|
| |