Skip to content

Commit 3a9bde1

Browse files
committed
Set HOME to RUN_DIR on tilde test.
1 parent 7f642d3 commit 3a9bde1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

features/scaffold-package.feature

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,17 +229,12 @@ Feature: Scaffold WP-CLI commands
229229
Scenario: Use tilde for HOME in package directory path
230230
Given an empty directory
231231
232-
When I try `wp scaffold package bar/foo --dir=~/foo --force --skip-tests --skip-readme`
232+
When I run `HOME={RUN_DIR} wp scaffold package bar/foo --dir=~/foo --force --skip-tests --skip-readme`
233233
Then STDOUT should contain:
234234
"""
235235
Success: Package installed.
236236
"""
237-
And STDERR should contain:
238-
"""
239-
Warning: File already exists
240-
"""
241-
And the /tmp/wp-cli-home/foo directory should exist
242-
And the return code should be 0
237+
And the {RUN_DIR}/foo directory should exist
243238
244239
Scenario: Scaffold a package but skip installation and GitHub templates
245240
Given an empty directory

0 commit comments

Comments
 (0)