chore: Stop swallowing errors in .sh tests
The Bash shell scripts ignored errors in all but the last line. This commit adds `set -eo pipefail` to fix the issue: `set -e` causes the script to exit as soon as any command exits with a non-zero exit code. When pipes are used, this flag only applies to the last command in a pipe. The `set -o pipefail` option ensures that the script is also exited with a non-zero exit code when any command in the pipe fails.
This commit is contained in:
parent
c0bf94f2eb
commit
7ff6e8a1dc
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Test webextension-polyfill on real browsers"
|
echo "Test webextension-polyfill on real browsers"
|
||||||
echo "==========================================="
|
echo "==========================================="
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Test webextension-polyfill bundled with webpack"
|
echo "Test webextension-polyfill bundled with webpack"
|
||||||
echo "==============================================="
|
echo "==============================================="
|
||||||
|
|
Loading…
Reference in New Issue