tap output with shell name

This commit is contained in:
Thomas Levine 2016-02-28 15:50:53 +00:00
parent 9f97f5d422
commit 2f57f7345e

13
urchin
View File

@ -187,8 +187,8 @@ recurse() {
"$(stdout_file "$potential_test")" 2>&1 "$(stdout_file "$potential_test")" 2>&1
fi fi
else else
# Shell is '(File is not executable.)' # Shell is ''
printf "${potential_test}\t(File is not executable.)\tskip\t0\n" >> $tmp/log printf "${potential_test}\t\tskip\t0\n" >> $tmp/log
fi fi
fi fi
} }
@ -244,7 +244,11 @@ report_outcome() {
else else
skip='' skip=''
fi fi
echo "${not}ok $n - ${path}${skip}"
if test -z "$the_shell"; then
the_shell='File is not executable.'
fi
echo "${not}ok $n - ${path} ($the_shell) ${skip}"
if [ "$result" == not_ok ]; then if [ "$result" == not_ok ]; then
echo '# ------------ Begin output ------------' echo '# ------------ Begin output ------------'
sed 's/^/# /' "$(stdout_file "$abspath")" sed 's/^/# /' "$(stdout_file "$abspath")"
@ -276,6 +280,9 @@ report_outcome() {
printf '\033[0m' printf '\033[0m'
;; ;;
skip) skip)
if test -z "$the_shell"; then
the_shell='(File is not executable.)'
fi
echo " $the_shell" echo " $the_shell"
;; ;;
esac esac