check: fix crash during yaml-less TAP import
ClosedPublic

Authored by kparal on Mar 25 2015, 1:24 PM.

Details

Summary

TAP without YAML is valid for importing, it's just not valid for
submitting results to resultsdb. If you want to import some TAP stub
and postprocess it later, we should not crash in those cases.

Test Plan

test suite passes

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal retitled this revision from to check: fix crash during yaml-less TAP import.Mar 25 2015, 1:24 PM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added reviewers: jskladan, mkrizek, tflink.
jskladan accepted this revision.Mar 25 2015, 1:40 PM
jskladan added inline comments.
libtaskotron/check.py
352

y = test.yaml if test.yaml else {} ;)

This revision is now accepted and ready to land.Mar 25 2015, 1:40 PM
mkrizek accepted this revision.Mar 25 2015, 2:16 PM
This revision was automatically updated to reflect the committed changes.