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
7
test/run
7
test/run
|
|
@ -36,10 +36,9 @@ elif [[ $output_only == false ]]; then
|
|||
if [[ -f /tmp/expected.$$ && -f /tmp/received.$$ ]]; then
|
||||
diff -w -U3 /tmp/expected.$$ /tmp/received.$$ && echo Test passed.
|
||||
fi
|
||||
else
|
||||
if [[ -f /tmp/received.$$ ]]; then
|
||||
cat /tmp/received.$$
|
||||
fi
|
||||
|
||||
elif [[ -f /tmp/received.$$ ]]; then
|
||||
cat /tmp/received.$$
|
||||
fi
|
||||
|
||||
/bin/rm -f /tmp/expected.$$ /tmp/received.$$
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue