Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip test_drift_detector if required test file is missing
The release tarball does not contain the file `scripts/suse/zypper/plugins/commit/zyppnotify`. Therefore skip `ZyppPluginsTestCase.test_drift_detector`, because it will fail otherwise: ``` ERROR: test_drift_detector (unit.test_zypp_plugins.ZyppPluginsTestCase) [CPU:0.0%|MEM:5.5%] ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/unit/test_zypp_plugins.py", line 45, in test_drift_detector zyppnotify = imp.load_source('zyppnotify', ZYPPNOTIFY_FILE) File "/usr/lib/python3.7/imp.py", line 171, in load_source module = _load(spec) File "<frozen importlib._bootstrap>", line 696, in _load File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 724, in exec_module File "<frozen importlib._bootstrap_external>", line 859, in get_code File "/usr/lib/python3.7/imp.py", line 157, in get_data return super().get_data(path) File "<frozen importlib._bootstrap_external>", line 916, in get_data FileNotFoundError: [Errno 2] No such file or directory: 'scripts/suse/zypper/plugins/commit/zyppnotify' ``` Forwarded: saltstack#55933 Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
- Loading branch information