From 9b355532c7db5cd5a7f3b52bb758f5068f777840 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 17:12:38 +0000 Subject: [PATCH] Allow the checksum warning when replacing a development build Some scenarios start from `Given a WP install` and then replace it with an older release. Core-command cleans up files by comparing checksums of the old and new versions. When the installed version is a development build (for example when testing against a WordPress core build), there are no published checksums for it, so the command prints a warning and `When I run` fails on STDERR. These steps now use `I try` and check the return code instead. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CE81GsxUY597AdaMP1NXzk --- features/requests.feature | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/features/requests.feature b/features/requests.feature index 0cb9e7101..dd64582f9 100644 --- a/features/requests.feature +++ b/features/requests.feature @@ -56,7 +56,9 @@ Feature: Requests integration with both v1 and v2 @require-mysql Scenario: Current version with WordPress-bundled Requests v1 Given a WP installation - And I run `wp core update --version=5.8 --force` + # May produce a warning if the checksums for the version being replaced cannot be retrieved, e.g. for a development build. + And I try `wp core update --version=5.8 --force` + And the return code should be 0 And I run `rm -r wp-content/themes/*` When I run `wp core version` @@ -99,7 +101,9 @@ Feature: Requests integration with both v1 and v2 twentyten """ And I try `wp theme activate twentyten` - And I run `wp core update --version=6.2 --force` + # May produce a warning if the checksums for the version being replaced cannot be retrieved, e.g. for a development build. + And I try `wp core update --version=6.2 --force` + And the return code should be 0 When I run `wp core version` Then STDOUT should contain: