vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit deafb1a6e7cee81eecf7535097215c6b93af16d6 parent dbd3c31c61155cafe265b880b392bd110c872392 Author: Marc André Tanner <mat@brain-dump.org> Date: Fri, 30 Dec 2016 21:18:29 +0100 Revert "Make sure that info messages are printed before test case is run" This reverts commit 73986885e435dfaf2b31a853f57fb6e7b82b0eb3. Travis is strange. Diffstat:
| M | lua/test.sh | | | 5 | ++--- |
| M | sam/test.sh | | | 2 | +- |
| M | vis/test.sh | | | 5 | ++--- |
3 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/lua/test.sh b/lua/test.sh @@ -18,10 +18,9 @@ for t in $test_files; do TESTS_RUN=$((TESTS_RUN + 1)) t=${t%.in} t=${t#./} - printf "%-30s" "$t" - - $VIS "$t".in < /dev/null > /dev/null 2>&1 + $VIS "$t".in < /dev/null 2> /dev/null + printf "%-30s" "$t" if [ -e "$t".out ]; then if cmp -s "$t".ref "$t".out 2> /dev/null; then printf "PASS\n" diff --git a/sam/test.sh b/sam/test.sh @@ -73,7 +73,7 @@ for t in $TESTS; do printf "Running test %s with vis ... " "$t" - $VIS "+,{ $NL $CMD $NL wq! $VIS_OUT $NL }" "$IN" >/dev/null 2>&1 + $VIS "+,{ $NL $CMD $NL wq! $VIS_OUT $NL }" "$IN" 2>/dev/null if [ $? -ne 0 -o ! -e "$VIS_OUT" ]; then printf "ERROR\n" elif cmp -s "$REF" "$VIS_OUT"; then diff --git a/vis/test.sh b/vis/test.sh @@ -18,10 +18,9 @@ for t in $test_files; do TESTS_RUN=$((TESTS_RUN + 1)) t=${t%.in} t=${t#./} - printf "%-50s" "$t" - - $VIS "$t".in < /dev/null > /dev/null 2>&1 + $VIS "$t".in < /dev/null 2> /dev/null + printf "%-50s" "$t" if [ -e "$t".out ]; then if cmp -s "$t".ref "$t".out 2> /dev/null; then printf "PASS\n"