mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-10-05 09:21:57 +02:00
Change tests to not show failure reasons in build script
This commit is contained in:
parent
8adaae9f2c
commit
3e399294e2
2
build.sh
2
build.sh
@ -264,7 +264,7 @@ done
|
||||
|
||||
if "$OPT_VERIFY"; then
|
||||
printc "\n%{YELLOW}Verifying scripts...%{CLEAR}\n" 1>&2
|
||||
"$HERE/test/run.sh" consistency-test
|
||||
TEST_QUIET=true "$HERE/test/run.sh" consistency-test
|
||||
exit $?
|
||||
fi
|
||||
|
||||
|
@ -25,14 +25,18 @@ fail() {
|
||||
c="in source script"
|
||||
fi
|
||||
|
||||
if [[ "$TEST_QUIET" != "true" ]]; then
|
||||
printf "\x1B[33mError (%s):\x1B[0m\n" "$c"
|
||||
bat --style=numbers --paging=never -
|
||||
fi
|
||||
;;
|
||||
|
||||
DIFF)
|
||||
printf "\x1B[33m%s\x1B[0m\n" "$2"
|
||||
if [[ "$TEST_QUIET" != "true" ]]; then
|
||||
printf "\x1B[33mDifference:\x1B[0m\n"
|
||||
bat --style=plain --paging=never -l diff -
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user