Refactor bootstrap script for SwarmUI management and enhance error handling

- Introduced functions `swarm_git_ok`, `clone_swarmui`, and `update_swarmui` to streamline the cloning and updating process of SwarmUI.
- Improved error handling during the update process, ensuring a fallback to cloning if the update fails.
- Enhanced logging messages for better visibility during cloning and updating operations.
- Updated tests to verify the presence of new functions and logging messages in the bootstrap script.
This commit is contained in:
Leonid Pershin
2026-08-21 10:27:25 +03:00
parent 9e63c0722e
commit dd0ffbf69b
2 changed files with 31 additions and 5 deletions
+2
View File
@@ -23,3 +23,5 @@ def test_bootstrap_script_is_native_swarmui():
assert "install_dotnet_via_curl" in script
assert "chown -R" in script
assert "wget" in script
assert "swarm_git_ok" in script
assert "переклонирую" in script or "перед clone" in script