Display debug buffer on failed test cases
This commit is contained in:
parent
729e55573f
commit
709635c20b
6
test/run
6
test/run
|
@ -9,7 +9,7 @@ main() { number_tests=0 number_failures=0
|
||||||
cp --recursive . $work
|
cp --recursive . $work
|
||||||
trap "rm --recursive $work" EXIT
|
trap "rm --recursive $work" EXIT
|
||||||
for dir in $(find $dirs -type d); do
|
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=¬
|
cd $work/$dir; { IFS=¬
|
||||||
indent=$(repeat ' ' $(pwd | sed "s|$test||" | tr --delete --complement / | awk '{ print length }'))
|
indent=$(repeat ' ' $(pwd | sed "s|$test||" | tr --delete --complement / | awk '{ print length }'))
|
||||||
name=$(basename $PWD)
|
name=$(basename $PWD)
|
||||||
|
@ -28,6 +28,7 @@ main() { number_tests=0 number_failures=0
|
||||||
exec gg
|
exec gg
|
||||||
}
|
}
|
||||||
exec '$(<cmd)'
|
exec '$(<cmd)'
|
||||||
|
eval -buffer *debug* write debug
|
||||||
nop %sh{ IFS==
|
nop %sh{ IFS==
|
||||||
echo \"\$kak_selections\" > selections
|
echo \"\$kak_selections\" > selections
|
||||||
echo \"\$kak_selections_desc\" > state
|
echo \"\$kak_selections_desc\" > state
|
||||||
|
@ -49,6 +50,9 @@ main() { number_tests=0 number_failures=0
|
||||||
colorize $color normal <<< $line
|
colorize $color normal <<< $line
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
|
colorize yellow normal <<< "debug buffer:"
|
||||||
|
cat debug
|
||||||
|
echo
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user