Skip to content

Commit 54ebd89

Browse files
committed
Debugging
1 parent 557cde8 commit 54ebd89

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/Context/FeatureContext.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,16 +1018,33 @@ public function install_wp( $subdir = '' ) {
10181018
$install_cache_path = self::$install_cache_dir . '/install_' . md5( implode( ':', $install_args ) . ':subdir=' . $subdir );
10191019
}
10201020

1021+
error_log( 'Install Cache Dir: ' . self::$install_cache_dir );
1022+
error_log( 'Cache Dir: ' . self::$cache_dir );
1023+
error_log( print_r( scandir( self::$cache_dir ), true ) );
1024+
error_log( 'SQLite Cache Dir: ' . self::$sqlite_cache_dir );
1025+
error_log( print_r( scandir( self::$sqlite_cache_dir ), true ) );
1026+
error_log( 'Run Dir: ' . $run_dir );
1027+
error_log( print_r( scandir( $run_dir ), true ) );
1028+
10211029
if ( $install_cache_path && file_exists( $install_cache_path ) ) {
1030+
error_log( 'Install Cache Dir: ' . $install_cache_path );
1031+
error_log( print_r( scandir( $install_cache_path ), true ) );
1032+
error_log( print_r( scandir( $install_cache_path . '/wp-content' ), true ) );
1033+
10221034
self::copy_dir( $install_cache_path, $run_dir );
10231035

1036+
error_log( print_r( scandir( $run_dir ), true ) );
1037+
10241038
// This is the sqlite equivalent of restoring a database dump in MySQL
10251039
if ( 'sqlite' === self::$db_type ) {
10261040
copy( "{$install_cache_path}.sqlite", "$run_dir/wp-content/database/.ht.sqlite" );
10271041
} else {
10281042
self::run_sql( 'mysql --no-defaults', [ 'execute' => "source {$install_cache_path}.sql" ], true /*add_database*/ );
10291043
}
10301044
} else {
1045+
error_log( '$subdir: ' . $subdir );
1046+
error_log( print_r( scandir( $subdir ), true ) );
1047+
10311048
$this->proc( 'wp core install', $install_args, $subdir )->run_check();
10321049
if ( $install_cache_path ) {
10331050
mkdir( $install_cache_path );

0 commit comments

Comments
 (0)