Skip to content

Commit

Permalink
beeversion-test.sh: some output cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jan 27, 2012
1 parent 12eecee commit 4a6e80a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@


echo -n "testing usage .. "
if ! ./beeversion >/dev/null ; then
if ! ./beeversion >/dev/null 2>&1 ; then
echo "OK"
else
echo "FAILED"
Expand All @@ -53,14 +53,14 @@ fi

for p in --lt --gt --le --ge --eq --ne ; do
echo -n "testing fail when no args in ${p} .. "
if ! ./beeversion ${p} >/dev/null ; then
if ! ./beeversion ${p} >/dev/null 2>&1 ; then
echo "OK"
else
echo "FAILED"
fi

echo -n "testing fail when no args in ${p} .. "
if ! ./beeversion ${p} dummy-1.2-3 >/dev/null ; then
if ! ./beeversion ${p} dummy-1.2-3 >/dev/null 2>&1 ; then
echo "OK"
else
echo "FAILED"
Expand All @@ -77,7 +77,7 @@ expect_success() {
if [ $? -eq 0 ] ; then
echo "PASSED"
else
echo "FAILED"
echo "FAILED (got fail, expected success)"
fi
}

Expand All @@ -91,7 +91,7 @@ expect_failure() {
if [ $? -eq 1 ] ; then
echo "PASSED"
else
echo "FAILED"
echo "FAILED (got success, expected fail)"
fi
}

Expand Down

0 comments on commit 4a6e80a

Please sign in to comment.