]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: tests: Slight tweak to the force-close share test.
authorJeremy Allison <jra@samba.org>
Fri, 13 Mar 2020 22:45:16 +0000 (15:45 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 18 Mar 2020 18:03:28 +0000 (18:03 +0000)
Turns out on a fast desktop machine 10MB is too small,
and by the time we've done the 'sleep 1' to make sure
the smbclient got scheduled and started processing
the 'put' command, it's already done.

Tweak the file size to be 20MB from 10MB. 10MB
seems to work reliably on gitlab-ci and on
sn-devel, but making the put size 20MB makes
sure it's still in flight when we force-close
the share, even on a fast desktop box. 20MB
shouldn't be too burdonsome even on ci VM's.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14301

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/script/tests/test_force_close_share.sh

index ebfff5af77cd5621cebd13b068d66619e9d796cd..da78b5a752e6507b7d4fa2aae62c8814c72d0060 100755 (executable)
@@ -32,7 +32,7 @@ mkfifo smbclient-stdin smbclient-stdout smbclient-stderr
 
 # Create a large-ish testfile
 rm testfile
-head -c 10MB /dev/zero >testfile
+head -c 20MB /dev/zero >testfile
 
 CLI_FORCE_INTERACTIVE=1; export CLI_FORCE_INTERACTIVE