From 709635c20b34f7db0e2271b7dfafebff1f2b0123 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 11 Oct 2014 15:52:24 +0100 Subject: [PATCH] Display debug buffer on failed test cases --- test/run | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/run b/test/run index 83b54fc9..c27842c8 100755 --- a/test/run +++ b/test/run @@ -9,7 +9,7 @@ main() { number_tests=0 number_failures=0 cp --recursive . $work trap "rm --recursive $work" EXIT for dir in $(find $dirs -type d); do - cd $test/$dir; test_files=$(find * | egrep 'out|selections|state') + cd $test/$dir; test_files=$(find * -name out -o -name selections -o -name state) cd $work/$dir; { IFS=¬ indent=$(repeat ' ' $(pwd | sed "s|$test||" | tr --delete --complement / | awk '{ print length }')) name=$(basename $PWD) @@ -28,6 +28,7 @@ main() { number_tests=0 number_failures=0 exec gg } exec '$( selections echo \"\$kak_selections_desc\" > state @@ -49,6 +50,9 @@ main() { number_tests=0 number_failures=0 colorize $color normal <<< $line done echo + colorize yellow normal <<< "debug buffer:" + cat debug + echo } done }