Skip to content

Commit 2b5016b

Browse files
committed
Use portable quoting for SQLite path tests
Double-quote the PHP command-line argument so the database hash checks also run under Windows cmd.exe.
1 parent eb9ef6a commit 2b5016b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎features/db-sqlite-path.feature‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Feature: Select the configured SQLite database for file operations
3030
And I try `wp eval 'echo "ready";'`
3131
Then the return code should be 0
3232

33-
When I run `php -r 'echo md5_file( "other.sqlite" );'`
33+
When I run `php -r "echo md5_file( 'other.sqlite' );"`
3434
Then save STDOUT as {OTHER_HASH}
3535

3636
When I try `wp db export selected.sql`
@@ -48,7 +48,7 @@ Feature: Select the configured SQLite database for file operations
4848
Then the return code should be 0
4949
And the selected.sqlite file should not exist
5050

51-
When I run `php -r 'echo md5_file( "other.sqlite" );'`
51+
When I run `php -r "echo md5_file( 'other.sqlite' );"`
5252
Then STDOUT should be:
5353
"""
5454
{OTHER_HASH}

0 commit comments

Comments
 (0)