summaryrefslogtreecommitdiff
path: root/tests/unittests/sources/conftest.py
Commit message (Collapse)AuthorAgeFilesLines
* tests/sources: patch util.get_cmdline() for datasource tests (#2091)Chris Patterson2023-03-231-0/+9
Recent changes to override_ds_detect() triggers a call to get_cmdline(), which invokes subp.subp() for various container checks. This causes tests to fail when running a specific test module instead of the full set. This is because test_smartos.py on module load will trigger these calls and the lru_cache() will retain the results. So if the module does not load, the tests will fail. Patch util.get_cmdline() for all data source tests to avoid this behavior. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>