mirror of
https://github.com/tstack/lnav.git
synced 2024-08-17 00:40:30 +03:00
[test] check_output should show a diff on failure
This commit is contained in:
parent
5bc8ebea96
commit
e80bfcb102
@ -50,10 +50,11 @@ run_test() {
|
||||
# EOF
|
||||
#
|
||||
check_output() {
|
||||
cmp ${test_file_base}_${test_num}.tmp -
|
||||
diff -u ${test_file_base}_${test_num}.tmp - > ${test_file_base}_${test_num}.diff
|
||||
if test $? -ne 0; then
|
||||
echo $LAST_TEST
|
||||
echo $1
|
||||
cat ${test_file_base}_${test_num}.diff
|
||||
exit 1
|
||||
fi
|
||||
test_num=`expr ${test_num} \+ 1`
|
||||
|
Loading…
Reference in New Issue
Block a user