diff options
author | Björn Jacke <bj@sernet.de> | 2010-12-02 10:20:59 +0100 |
---|---|---|
committer | Bjoern Jacke <bj@sernet.de> | 2010-12-02 10:36:06 +0100 |
commit | eeade1596df7bd52fab3b3a4b39266f39ffa6fb1 (patch) | |
tree | 3d8e8220321c0bc7d745a5e9b40be5ef2eec8cf4 /lib/subunit/shell/tests/test_function_output.sh | |
parent | e8f9ee64a71d788a8ed1e1d7d5715f248c4fa107 (diff) | |
download | samba-eeade1596df7bd52fab3b3a4b39266f39ffa6fb1.tar.gz samba-eeade1596df7bd52fab3b3a4b39266f39ffa6fb1.tar.bz2 samba-eeade1596df7bd52fab3b3a4b39266f39ffa6fb1.zip |
tests: avoid bash in shebang and fix wrong "==" in test
Diffstat (limited to 'lib/subunit/shell/tests/test_function_output.sh')
-rwxr-xr-x | lib/subunit/shell/tests/test_function_output.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/subunit/shell/tests/test_function_output.sh b/lib/subunit/shell/tests/test_function_output.sh index b78eee6946..6e500cff5c 100755 --- a/lib/subunit/shell/tests/test_function_output.sh +++ b/lib/subunit/shell/tests/test_function_output.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # subunit shell bindings. # Copyright (C) 2006 Robert Collins <robertc@robertcollins.net> # @@ -29,7 +29,7 @@ echo 'test: subunit_start_test output' func_output=$(subunit_start_test "foo bar") func_status=$? -if [ $func_status == 0 -a "x$func_output" = "xtest: foo bar" ]; then +if [ $func_status -eq 0 -a "x$func_output" = "xtest: foo bar" ]; then echo 'success: subunit_start_test output' else echo 'failure: subunit_start_test output [' @@ -42,7 +42,7 @@ fi subunit_start_test "subunit_pass_test output" func_output=$(subunit_pass_test "foo bar") func_status=$? -if [ $func_status == 0 -a "x$func_output" = "xsuccess: foo bar" ]; then +if [ $func_status -eq 0 -a "x$func_output" = "xsuccess: foo bar" ]; then subunit_pass_test "subunit_pass_test output" else echo 'failure: subunit_pass_test output [' @@ -60,7 +60,7 @@ here END ) func_status=$? -if [ $func_status == 0 -a "x$func_output" = "xfailure: foo bar [ +if [ $func_status -eq 0 -a "x$func_output" = "xfailure: foo bar [ something wrong here @@ -82,7 +82,7 @@ here END ) func_status=$? -if [ $func_status == 0 -a "x$func_output" = "xerror: foo bar [ +if [ $func_status -eq 0 -a "x$func_output" = "xerror: foo bar [ something died here |