diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-21 10:32:55 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-21 10:32:55 +0200 |
| commit | be69467c2caefddc1f04d5be71d36f6b8d9c13d3 (patch) | |
| tree | b7aa71813e656da82187422181ca3f75501e0d3e /tests/test_remote.py | |
| parent | 88d83139b2cf6fa22df823054936a49d14f4f554 (diff) | |
| download | sb-builder-be69467c2caefddc1f04d5be71d36f6b8d9c13d3.tar.gz sb-builder-be69467c2caefddc1f04d5be71d36f6b8d9c13d3.zip | |
sbb-remote 0.11.0: rebuild-tree job (phase 3)
New job kind rebuild-tree runs slackrepo_setup_SBo-danix.sh, which now
builds the fresh tree beside the live one and swaps it in. The Jobs
tab gets a Rebuild tree action behind a modal confirm.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_remote.py')
| -rw-r--r-- | tests/test_remote.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_remote.py b/tests/test_remote.py index 3ac584a..44d3a90 100644 --- a/tests/test_remote.py +++ b/tests/test_remote.py @@ -177,6 +177,11 @@ class KindsTest(Base): with self.assertRaises(sbb.Error): sbb.KINDS["publish"](self.cfg, ["x"]) + def test_rebuild_tree(self): + self.assertEqual(sbb.KINDS["rebuild-tree"](self.cfg, []), (["slackrepo_setup_SBo-danix.sh"], {})) + with self.assertRaises(sbb.Error): + sbb.KINDS["rebuild-tree"](self.cfg, ["--yes"]) + def test_rejects_bad_args(self): for kind, args in (("sbpull", ["evil", "--no"]), ("sbpull", ["personal"]), ("sbpull", ["personal", "--force"]), ("sbshadow", []), |
