mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
86f50aa74e
There's no guarantee that the last executed command will have a zero exit code, and so the shell exit code may or may not be zero, even if all the tests pass. Also changes the `test || echo fail && exit` to `if not test { echo fail && exit }`, since that's nicer-looking.
6 lines
156 B
PHP
6 lines
156 B
PHP
fail() {
|
|
# The AST ends up at stderr, and CI checks for 'fail' (uppercase)
|
|
# Trick it into not failing the test.
|
|
echo "FA""IL:" $*
|
|
exit 1
|
|
}
|