diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-19 21:36:15 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-19 21:36:15 +0200 |
| commit | fc02ae2b562a3c608b41302d84d69b29415b927c (patch) | |
| tree | 9fe27aad03c05eea293352dbffa4a77b8a784efa /tests/test_gui.py | |
| parent | 993950b7733ba9300915955ec6e51e1f21dad806 (diff) | |
| download | sb-builder-fc02ae2b562a3c608b41302d84d69b29415b927c.tar.gz sb-builder-fc02ae2b562a3c608b41302d84d69b29415b927c.zip | |
build-log: show the last attempt's log, not always build.log
slackrepo writes one log per command (build, rebuild, update,
remove). A failed update left build.log from an older successful
build, so the viewer showed a success next to a failed result. The
helper (0.4.1) now returns the newest command log and its name, which
the viewer shows in the title and header.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_gui.py')
| -rw-r--r-- | tests/test_gui.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_gui.py b/tests/test_gui.py index d77df20..4eb4211 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -291,7 +291,8 @@ class SmokeTest(unittest.TestCase): "stats": (STATS, None), "jobs": ({"jobs": []}, None), "gpg-status": ({"unlocked": True, "key": "K"}, None), "inventory": (INVENTORY, None), "results": (RESULTS, None), - "build-log": ({"build": "\x1b[1mERROR\x1b[0m: make failed\n", + "build-log": ({"name": "update.log", + "build": "\x1b[1mERROR\x1b[0m: make failed\n", "truncated": True, "mtime": 0, "resource": "peak memory 3308M\n"}, None), **answers}) @@ -483,6 +484,7 @@ class SmokeTest(unittest.TestCase): self.assertIn("peak memory", viewer.text.toPlainText()) self.assertIn("truncated", viewer.text.toPlainText()) self.assertTrue(viewer.text.toPlainText().endswith("make failed\n")) # failure stays last + self.assertIn("update.log", viewer.windowTitle()) viewer.close() def test_dashboard_results_clicks(self): |
