Skip to content

Commit 50f20e6

Browse files
committed
Create directory if missing
1 parent 766ef2c commit 50f20e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/maybe-generate-wp-cli-coverage.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ static function () use ( $coverage, $feature, $scenario, $name ) {
3737
$db_type = strtolower( getenv( 'WP_CLI_TEST_DBTYPE' ) );
3838
$destination = "$project_dir/build/logs/$feature_suffix-$scenario_suffix-$db_type.xml";
3939

40+
$dir = dirname( $destination );
41+
if ( ! file_exists( $dir ) ) {
42+
mkdir( $dir, 0777, true /*recursive*/ );
43+
}
44+
4045
( new Clover() )->process( $coverage, $destination, $name );
4146
}
4247
);

0 commit comments

Comments
 (0)