Commit fb72073
committed
Fix
The "DB Operations with passed-in options" scenario asserted that
`wp db repair --verbose` writes "Connecting" to STDERR. That only holds on
MySQL: its mysqlcheck writes `# Connecting to ...` to STDERR at a single
`--verbose`, but MariaDB's mariadb-check writes `Processing databases` to STDOUT
and only prints connection information at a higher verbosity level, so the
assertion failed on MariaDB.
There is no single verbose-only string both clients emit at one `--verbose`, so
merge the streams and match either client's marker, and assert the `wp db repair`
success message so the scenario still proves the command ran.wp db repair --verbose test for MariaDB1 parent e0783e6 commit fb72073
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
186 | 190 | | |
187 | | - | |
| 191 | + | |
| 192 | + | |
188 | 193 | | |
189 | | - | |
| 194 | + | |
190 | 195 | | |
191 | | - | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| |||
0 commit comments