Skip to content

Commit 46ba4ed

Browse files
Copilotswissspidy
andcommitted
Fix test to check STDERR for progress bar output
Progress bars in WP-CLI output to STDERR, not STDOUT. Updated tests to check STDERR for "Updating" message from progress bar. This fixes the test that was failing because it was checking the wrong output stream. Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent b5da516 commit 46ba4ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

features/search-replace.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ Feature: Do global search/replace
14001400
And I run `wp option set test_url 'Visit http://example.com for more'`
14011401

14021402
When I run `wp search-replace http://example.com http://example.org --precise`
1403-
Then STDOUT should contain:
1403+
Then STDERR should contain:
14041404
"""
14051405
Updating
14061406
"""
@@ -1415,7 +1415,7 @@ Feature: Do global search/replace
14151415
"""
14161416
Checking:
14171417
"""
1418-
And STDOUT should not contain:
1418+
And STDERR should not contain:
14191419
"""
14201420
Updating
14211421
"""

0 commit comments

Comments
 (0)