Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save server artifacts once regardless of calls
Due to the specifics of working with the test and the added connection between `test <-> server` as well as because artifacts will be saved with a connection problem [1], the `Server:save_artifacts()` method were called more than once. In case of any problems we could overwrite already saved artifacts. Added a flag that will ensure that the saving will be executed only once. There was also a problem when copying artifacts was not performed but the path to the artifacts was formed as a directory with artifacts (as if it exists): artifacts: server -> /tmp/t/artifacts/server-XXX And if we try to look at these artifacts, nothing will work: $ ls -la /tmp/t/artifacts/server-XXX ls: cannot access '/tmp/t/artifacts/server-XXX': No such file or directory To show explicitly that the saving failed with an error, the string will now be written to the artifacts: artifacts: server -> Failed to copy artifacts for server (workdir: /tmp/t/artifacts/server-XXX) [1] tarantool/luatest@251b35f Close tarantool#304
- Loading branch information