summaryrefslogtreecommitdiff
path: root/tests/run-debuginfod-federation-link.sh
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-09-07 23:56:42 +0200
committerMark Wielaard <mark@klomp.org>2021-09-07 23:56:42 +0200
commit5ce85e424907d82797f5efe59a8416ec537ebd9e (patch)
tree0f2e3ee614e7888276bfef54f36660c3fc9a67e4 /tests/run-debuginfod-federation-link.sh
parentdbd4c8766ea80cb0b6294a6755a556017215eb99 (diff)
downloadelfutils-5ce85e424907d82797f5efe59a8416ec537ebd9e.tar.gz
tests: Make sure to wait for initial scan and groom cycle earlier
At startup the debuginfod server does a scan and groom cycle. Make sure to wait for that before making any changes to the scan dirs. And not just right before triggering a new one with SIGUSR1 for scan or SIGURS2 for groom. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'tests/run-debuginfod-federation-link.sh')
-rwxr-xr-xtests/run-debuginfod-federation-link.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/run-debuginfod-federation-link.sh b/tests/run-debuginfod-federation-link.sh
index 1aef7174..050bcbcf 100755
--- a/tests/run-debuginfod-federation-link.sh
+++ b/tests/run-debuginfod-federation-link.sh
@@ -43,6 +43,7 @@ tempfiles vlog$PORT1
errfiles vlog$PORT1
wait_ready $PORT1 'ready' 1
+# Make sure initial scan was done
wait_ready $PORT1 'thread_work_total{role="traverse"}' 1
wait_ready $PORT1 'thread_work_pending{role="scan"}' 0
wait_ready $PORT1 'thread_busy{role="scan"}' 0
@@ -63,8 +64,6 @@ BUILDID=`env LD_LIBRARY_PATH=$ldpath ${abs_builddir}/../src/readelf \
mv prog F
mv prog.debug F
-# Make sure initial scan was done
-wait_ready $PORT1 'thread_work_total{role="traverse"}' 1
kill -USR1 $PID1
# Wait till both files are in the index.
wait_ready $PORT1 'thread_work_total{role="traverse"}' 2