X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Frotation%2Frotate_utils.sh;h=3cd9fab6f5ea278437be9db2980c3e4cf72c1964;hb=61159eeb808d6691ec7d9e7c4e84c2057c2d27f2;hp=3d622decaf7d4b43d494973a9d96092b4400c45d;hpb=36e6632013ee40eabfbe50db19ebd8e606ba0204;p=lttng-tools.git diff --git a/tests/regression/tools/rotation/rotate_utils.sh b/tests/regression/tools/rotation/rotate_utils.sh index 3d622deca..3cd9fab6f 100644 --- a/tests/regression/tools/rotation/rotate_utils.sh +++ b/tests/regression/tools/rotation/rotate_utils.sh @@ -116,6 +116,11 @@ function rotate_timer_test () nr_iter=0 expected_chunks=3 + # Wait for the "archives" folder to appear after the first rotation + until [ -d $local_path ]; do + sleep 1 + done + # Wait for $expected_chunks to be generated, timeout after # 3 * $expected_chunks * 0.5s. # On a laptop with an empty session, a local rotation takes about 200ms,