File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,13 @@ Provides drush (`runDrush`) command.
4747
4848### Configuration
4949- working_directory: Working directory where drush should be executed. Defaults to codeception root.
50+ - timeout: Timeout in seconds for drush command. Set to 0 for no timeout. Default to 60 seconds.
5051- drush: Drush executable. Defaults to ` drush ` .
5152```
5253modules:
5354 - DrupalDrush:
5455 working_directory: './web'
56+ timeout: 120
5557 drush: './vendor/bin/drush'
5658 options:
5759 uri: http://mydomain.com
@@ -60,9 +62,17 @@ modules:
6062
6163### Usage
6264
63- Run drush config import and store output.
65+ Run drush status and store output.
6466
65- ` $output = $i->runDrush('cim -y'); `
67+ ` $output = $i->runDrush('status'); `
68+
69+ Run drush config import and store output from STDERR.
70+
71+ ` $output = $i->runDrush('cim -y', [], TRUE)->getErrorOutput(); `
72+
73+ Run drush cache rebuild and store the exit code.
74+
75+ ` $exit_code = $i->runDrush('cr', [], TRUE)->getExitCode(); `
6676
6777Get one-time login url.
6878
You can’t perform that action at this time.
0 commit comments