btest/brokerstore-attr-persistence-clone: Add BTEST_BG_RUN_SLEEP=1

This test has become flaky after #4295. It hasn't been failing regularly
enough locally to make it approachable. Annotate with
BTEST_BG_RUN_SLEEP=1 to revert to pre #4295 behavior, hopefully
fixing the flakiness as a side-effect.
This commit is contained in:
Arne Welzel 2025-04-04 15:57:44 +02:00
parent f0ccd5c7f8
commit fa7ffaf8c1

View file

@ -1,8 +1,12 @@
# @TEST-PORT: BROKER_PORT
# @TEST-EXEC: zeek -b %DIR/sort-stuff.zeek common.zeek one.zeek > output1
# @TEST-EXEC: btest-bg-run master "cp ../*.sqlite . && zeek -b %DIR/sort-stuff.zeek ../common.zeek ../two.zeek >../output2"
# @TEST-EXEC: btest-bg-run clone "zeek -b %DIR/sort-stuff.zeek ../common.zeek ../three.zeek >../output3"
#
# This test becomes flaky when not sleeping for a second after starting the
# test. Due to that, we set BTEST_BG_RUN_SLEEP=1 explicitly. See #4312 and
# #4295 for background.
# @TEST-EXEC: BTEST_BG_RUN_SLEEP=1 btest-bg-run master "cp ../*.sqlite . && zeek -b %DIR/sort-stuff.zeek ../common.zeek ../two.zeek >../output2"
# @TEST-EXEC: BTEST_BG_RUN_SLEEP=1 btest-bg-run clone "zeek -b %DIR/sort-stuff.zeek ../common.zeek ../three.zeek >../output3"
# @TEST-EXEC: btest-bg-wait 20
# @TEST-EXEC: btest-diff output1