Skip to content

Commit ebfa1ff

Browse files
committed
Fix inverted grep patterns in backdrop-mysql-client tests
- Replace grep -qiv with proper negation pattern (grep -qi || echo $? | grep 1) - Fixes bug where grep -v on multi-line files always passes - Aligns with codebase convention from backdrop-defaults example
1 parent f0a16d3 commit ebfa1ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/backdrop-mysql-client/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ lando bee db-export --file=/tmp/bee-export.sql
3737

3838
```bash
3939
# Exported SQL should use MySQL dump format (not MariaDB)
40-
lando exec appserver -- cat /tmp/bee-export.sql | grep -qiv "MariaDB dump"
40+
lando exec appserver -- cat /tmp/bee-export.sql | grep -qi "MariaDB dump" || echo $? | grep 1
4141
```
4242

4343
```bash
4444
# Should be able to export with db-export without SSL errors
4545
lando db-export --stdout > /tmp/lando-export.sql
46-
cat /tmp/lando-export.sql | grep -i "Dump" | grep -qiv "MariaDB"
46+
cat /tmp/lando-export.sql | grep -i "Dump" | grep -qi "MariaDB" || echo $? | grep 1
4747
```
4848

4949
## Destroy tests

0 commit comments

Comments
 (0)