diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-12 12:51:19 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-12 12:51:19 +0200 |
commit | 48c2c8c2689bf6420d7309c62d319a9428c8b31a (patch) | |
tree | afc5c34837606385c6d8ebd3f6560feefdf64c1f /test | |
parent | e503c38d5aa39b4a40ab2584bb84c536dee02954 (diff) |
test/main: Set ZERR trap for more information why the test failed
Diffstat (limited to 'test')
-rwxr-xr-x | test/main | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,6 +1,8 @@ #!/usr/bin/env zsh setopt err_exit +trap "print -P '\n%N:%i: %B%F{red}Test faild!%F{default}%b'" ZERR + function stringcmp { diff -u <(echo $1) <(echo $2) } |