Show the log in the page over the site while updating or upgrading
The Update page's overlay carries the update's log; the Packages page gets an overlay too, named after the step that runs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -141,6 +141,9 @@ func TestUpgradePage(t *testing.T) {
|
||||
if r := request(); r["action"] != "preview" || r["force"] != true || r["downgrade"] != true {
|
||||
t.Fatalf("%v", r)
|
||||
}
|
||||
if data, _ := os.ReadFile(filepath.Join(a.sys.upgradeDir(), "action")); string(data) != "preview" {
|
||||
t.Fatalf("the running step is not recorded: %q", data)
|
||||
}
|
||||
if resp := post("/upgrade/format-disk", url.Values{}); resp.StatusCode != http.StatusNotFound {
|
||||
t.Fatalf("unknown step: %d", resp.StatusCode)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user