1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

s3:tests: Track the status of smbcquotas and not tr

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
This commit is contained in:
Andreas Schneider 2024-09-25 07:50:15 +02:00 committed by Andreas Schneider
parent 91f0d7e1c9
commit 59e4ea91f2

View File

@ -191,10 +191,10 @@ test_smbcquotas()
mproto="-m SMB1"
fi
output=$($VALGRIND $smbcquotas $mproto //$SERVER/dfq "$@" 2>/dev/null | tr '\\' '/')
output=$($VALGRIND $smbcquotas $mproto //$SERVER/dfq "$@" 2>/dev/null)
status=$?
if [ "$status" = "0" ]; then
received=$(echo "$output" | awk "/$SERVER\\/$user/ {printf \"%s%s%s\", \$3, \$4, \$5}")
received=$(echo "$output" | tr '\\' '/' | awk "/$SERVER\\/$user/ {print \$3\$4\$5}")
if [ "$expected" = "$received" ]; then
subunit_pass_test "$name"
return 0