From: Volker Lendecke Date: Mon, 5 Jan 2026 09:15:45 +0000 (+0100) Subject: tests: Make recycle:touch test less flakey X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c59269bb43cd06c702496867cc11ec08c63fb9c2;p=thirdparty%2Fsamba.git tests: Make recycle:touch test less flakey I get the same atime pretty frequently. Wait a second to be sure it changes. Signed-off-by: Volker Lendecke Reviewed-by: Martin Schwenke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Mon Jan 5 11:20:04 UTC 2026 on atb-devel-224 --- diff --git a/source3/script/tests/test_recycle.sh b/source3/script/tests/test_recycle.sh index 9f98841bd32..1b2e8171a1f 100755 --- a/source3/script/tests/test_recycle.sh +++ b/source3/script/tests/test_recycle.sh @@ -129,6 +129,7 @@ test_touch() rm -f "$tmpfile" atime1=`stat -c '%x' "$share_test_dir/test_mtime"` mtime1=`stat -c '%y' "$share_test_dir/test_mtime"` + sleep 1 if ! $SMBCLIENT -U$USERNAME%$PASSWORD //$SERVER/recycle -I$SERVER_IP $ADDARGS -c 'del test_mtime' ; then printf "failed recycle smbclient" return 1