Skip to content

Commit

Permalink
Add test of error not getting silenced
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Oct 7, 2024
1 parent 3e3515e commit b01b176
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/various/logger_cmd_error.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

trap 'echo "ERROR in logger_cmd_error.sh" >&2; exit 1' ERR

(../../yosys -v 3 -C <<EOF
yosys -import
hierarchy -top nonexistent
EOF
) 2>&1 | grep -F "ERROR: Module \`nonexistent' not found!" > /dev/null

0 comments on commit b01b176

Please sign in to comment.