]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tests: Track the status of smbcquotas and not tr
authorAndreas Schneider <asn@samba.org>
Wed, 25 Sep 2024 05:50:15 +0000 (07:50 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 27 Sep 2024 07:55:29 +0000 (07:55 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
source3/script/tests/test_dfree_quota.sh

index 91510165029d309195b5c3a2ca420f6ef549781c..dbbd1f6e2947ac851bc37a8f9098d569f3708e1d 100755 (executable)
@@ -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