Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use WP-CLI for SQLite test hash checks
Skip WordPress loading so hashing after database deletion does not recreate the database.
  • Loading branch information
JanJakes committed Oct 5, 2026
commit e2c2f8a416c536df2de4df7596cf4dcd28132f04
4 changes: 2 additions & 2 deletions features/db-sqlite-path.feature
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Feature: Select the configured SQLite database for file operations
And I try `wp eval 'echo "ready";'`
Then the return code should be 0

When I run `php -r "echo md5_file( 'other.sqlite' );"`
When I run `wp eval 'echo md5_file( "other.sqlite" );' --skip-wordpress`
Then save STDOUT as {OTHER_HASH}

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

When I run `php -r "echo md5_file( 'other.sqlite' );"`
When I run `wp eval 'echo md5_file( "other.sqlite" );' --skip-wordpress`
Then STDOUT should be:
"""
{OTHER_HASH}
Expand Down
Loading