Simplified an else clause in test/run
This commit is contained in:
parent
1719e6cd6c
commit
c5352f09a4
1 changed files with 3 additions and 4 deletions
5
test/run
5
test/run
|
|
@ -36,10 +36,9 @@ elif [[ $output_only == false ]]; then
|
||||||
if [[ -f /tmp/expected.$$ && -f /tmp/received.$$ ]]; then
|
if [[ -f /tmp/expected.$$ && -f /tmp/received.$$ ]]; then
|
||||||
diff -w -U3 /tmp/expected.$$ /tmp/received.$$ && echo Test passed.
|
diff -w -U3 /tmp/expected.$$ /tmp/received.$$ && echo Test passed.
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
if [[ -f /tmp/received.$$ ]]; then
|
elif [[ -f /tmp/received.$$ ]]; then
|
||||||
cat /tmp/received.$$
|
cat /tmp/received.$$
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/bin/rm -f /tmp/expected.$$ /tmp/received.$$
|
/bin/rm -f /tmp/expected.$$ /tmp/received.$$
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue