summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtestprogs/blackbox/common_test_fns.inc16
1 files changed, 8 insertions, 8 deletions
diff --git a/testprogs/blackbox/common_test_fns.inc b/testprogs/blackbox/common_test_fns.inc
index 77c635bc5d7..8d755a48847 100755
--- a/testprogs/blackbox/common_test_fns.inc
+++ b/testprogs/blackbox/common_test_fns.inc
@@ -14,7 +14,7 @@ test_smbclient() {
if [ x$status = x0 ]; then
subunit_pass_test "$name"
else
- echo "$output" | subunit_fail_test "$name"
+ printf '%s' "$output" | subunit_fail_test "$name"
fi
return $status
}
@@ -30,7 +30,7 @@ test_smbclient_expect_failure() {
output=`$VALGRIND $smbclient $CONFIGURATION "$unc" -c "$cmd" $@ 2>&1`
status=$?
if [ x$status = x0 ]; then
- echo "$output" | subunit_fail_test "$name"
+ printf '%s' "$output" | subunit_fail_test "$name"
else
subunit_pass_test "$name"
fi
@@ -50,15 +50,15 @@ test_rpcclient_grep() {
output=`$VALGRIND $rpcclient $CONFIGURATION "$srv" -c "$cmd" $@ 2>&1`
status=$?
if [ x$status != x0 ]; then
- echo "$output" | subunit_fail_test "$name"
+ printf '%s' "$output" | subunit_fail_test "$name"
return $status
fi
- echo "$output" | grep -q "$grep"
+ printf '%s' "$output" | grep -q "$grep"
gstatus=$?
if [ x$gstatus = x0 ]; then
subunit_pass_test "$name"
else
- echo "$output" | subunit_fail_test "$name"
+ printf '%s' "$output" | subunit_fail_test "$name"
fi
return $status
}
@@ -76,15 +76,15 @@ test_rpcclient_expect_failure_grep() {
output=`$VALGRIND $rpcclient $CONFIGURATION "$srv" -c "$cmd" $@ 2>&1`
status=$?
if [ x$status = x0 ]; then
- echo "$output" | subunit_fail_test "$name"
+ printf '%s' "$output" | subunit_fail_test "$name"
return $status
fi
- echo "$output" | grep -q "$grep"
+ printf '%s' "$output" | grep -q "$grep"
gstatus=$?
if [ x$gstatus = x0 ]; then
subunit_pass_test "$name"
else
- echo "$output" | subunit_fail_test "$name"
+ printf '%s' "$output" | subunit_fail_test "$name"
fi
return $status
}