(minor) test driver revert; debugging code had snuck in...
This commit is contained in:
parent
e970327cc1
commit
a70120a3df
|
@ -117,9 +117,7 @@ expect_filesame() {
|
||||||
die() {
|
die() {
|
||||||
echo '***** AAAAARRRGGH! *****' >&2
|
echo '***** AAAAARRRGGH! *****' >&2
|
||||||
echo ${BASH_LINENO[1]} ${BASH_SOURCE[2]} >&2
|
echo ${BASH_LINENO[1]} ${BASH_SOURCE[2]} >&2
|
||||||
cd $TESTDIR
|
echo "vim +${BASH_LINENO[1]} \'+r !head ~/1 ~/2 /dev/null\' ${BASH_SOURCE[2]}" >&2
|
||||||
vim +${BASH_LINENO[1]} '+r !head ~/1 ~/2 /dev/null' ${BASH_SOURCE[2]}
|
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,7 +126,6 @@ expect() {
|
||||||
then
|
then
|
||||||
ok
|
ok
|
||||||
else
|
else
|
||||||
die foo
|
|
||||||
notok "expecting: $1, got:"
|
notok "expecting: $1, got:"
|
||||||
cat ~/1 ~/2|sed -e 's/^/# /'
|
cat ~/1 ~/2|sed -e 's/^/# /'
|
||||||
fi
|
fi
|
||||||
|
@ -137,7 +134,6 @@ expect() {
|
||||||
notexpect() {
|
notexpect() {
|
||||||
if cat ~/1 ~/2 | grep "$1" >/dev/null
|
if cat ~/1 ~/2 | grep "$1" >/dev/null
|
||||||
then
|
then
|
||||||
die foo
|
|
||||||
notok "NOT expecting: $1, got:"
|
notok "NOT expecting: $1, got:"
|
||||||
cat ~/1 ~/2|sed -e 's/^/# /'
|
cat ~/1 ~/2|sed -e 's/^/# /'
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue