File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ Feature: Global flags
355355 """
356356
357357 Scenario : SSH flag should support Docker
358- When I try `wp --debug --ssh=docker:user@wordpress --version`
358+ When I try `WP_CLI_DOCKER_NO_INTERACTIVE=1 wp --debug --ssh=docker:user@wordpress --version`
359359 Then STDERR should contain:
360360 """
361361 Running SSH command: docker exec --user 'user' 'wordpress' sh -c
Original file line number Diff line number Diff line change @@ -593,7 +593,7 @@ private function generate_ssh_command( $bits, $wp_command ) {
593593 $ bits ['user ' ] ? '--user ' . escapeshellarg ( $ bits ['user ' ] ) . ' ' : '' ,
594594 $ bits ['path ' ] ? '--workdir ' . escapeshellarg ( $ bits ['path ' ] ) . ' ' : '' ,
595595 $ is_stdout_tty && ! getenv ( 'WP_CLI_DOCKER_NO_TTY ' ) ? '-t ' : '' ,
596- $ is_stdin_tty || getenv ( 'WP_CLI_DOCKER_NO_INTERACTIVE ' ) || getenv ( ' BEHAT_RUN ' ) ? '' : '-i ' ,
596+ $ is_stdin_tty || getenv ( 'WP_CLI_DOCKER_NO_INTERACTIVE ' ) ? '' : '-i ' ,
597597 escapeshellarg ( $ bits ['host ' ] ),
598598 escapeshellarg ( $ wp_command )
599599 );
@@ -622,7 +622,7 @@ private function generate_ssh_command( $bits, $wp_command ) {
622622 $ bits ['user ' ] ? '--user ' . escapeshellarg ( $ bits ['user ' ] ) . ' ' : '' ,
623623 $ bits ['path ' ] ? '--workdir ' . escapeshellarg ( $ bits ['path ' ] ) . ' ' : '' ,
624624 $ is_stdout_tty || getenv ( 'WP_CLI_DOCKER_NO_TTY ' ) ? '' : '-T ' ,
625- $ is_stdin_tty || getenv ( 'WP_CLI_DOCKER_NO_INTERACTIVE ' ) || getenv ( ' BEHAT_RUN ' ) ? '' : '-i ' ,
625+ $ is_stdin_tty || getenv ( 'WP_CLI_DOCKER_NO_INTERACTIVE ' ) ? '' : '-i ' ,
626626 escapeshellarg ( $ bits ['host ' ] ),
627627 $ wp_command
628628 );
You can’t perform that action at this time.
0 commit comments