Optofidelity refactoring: Move test config into special dictionary
We had a lot of duplicate logic to test wether a config value is set,
then skipping a test if it is not. This change creates a dictionary
for config values that automatically raises a SkipTest exception
if a None value is accessed.
This allows us to configure which test cases are being run. With all
configuration values set, the overall coverage reaches 88%. The largest
missing parts are either debugging features or not accounted for
by coverage.py since they are being executed in subprocesses.
BUG=None
TEST=None
Change-Id: I24d846afad209bbfa9a37537ffc4a0c598ee6e2b
Reviewed-on: https://chromium-review.googlesource.com/336499
Commit-Ready: Dennis Kempin <denniskempin@chromium.org>
Tested-by: Dennis Kempin <denniskempin@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@chromium.org>
14 files changed