Fix compute tests init
Compute tests skip and feature enable mechanism based on global variables
set by the generic_setup_package. When the tesresources is introduced
for handling initialization, the skip logic frequently sees the default disabled
values.
Code execute on module load is not advised, because the hacking.py (used
on pep8 checking) inspects the modules in way which causes global module
code execution.
Every compute test cases depends on base class, which static (class)
attribute initialization done, before any setUpClass checking the global
variables.
This initialization is happens only once, and visible by all subclasses.
A possible next step (after this change), to have the
generic_setup_package to return, with a dict contains the conclusion
about the testing and configured variables, it will be visible for all
subclasses.
Change-Id: I405dc1a441b2da3fa95d7fbec62e5871eae8c905
2 files changed