After tempest initiates a workspace. a .stestr.conf file storing the path to the tempest module is created in the root of the workspace directory. This path contains tempest snap revision (e.g. /snap/tempest/x1/...). Upon snap refreshes, the path to the current tempest module will be different from the path stored in the workspace initiated with a previous tempest version, so running tests will produce module import error:
ImportError: 'test_agents' module incorrectly imported from '/snap/tempest/x2/lib/python3.10/site-packages/tempest/api/compute/admin'. Expected '/snap/tempest/x1/lib/python3.10/site-packages/tempest/api/compute/admin'. Is this module globally installed?
After tempest initiates a workspace. a
.stestr.conf
file storing the path to the tempest module is created in the root of the workspace directory. This path contains tempest snap revision (e.g./snap/tempest/x1/...
). Upon snap refreshes, the path to the current tempest module will be different from the path stored in the workspace initiated with a previous tempest version, so running tests will produce module import error: