From 97eaa165280aca88bf04a06b6eb81d8611f48b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Y=C3=BCce=20K=C3=BCr=C3=BCm?= Date: Mon, 27 May 2024 18:06:57 +0200 Subject: [PATCH] ci: cdrouter: flush DNS cache before cdrouter tests start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of reducing unbound negative cache ttl try to flush it just before the tests start. Signed-off-by: Yüce Kürüm Signed-off-by: Yüce Kürüm --- .gitlab/cdrouter.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab/cdrouter.yml b/.gitlab/cdrouter.yml index abcc6a466b..30ba1d8c09 100644 --- a/.gitlab/cdrouter.yml +++ b/.gitlab/cdrouter.yml @@ -73,6 +73,8 @@ - ssh root@$TARGET_LAN_IP "cat /var/log/messages" > syslog-$LABGRID_TARGET.txt 2> /dev/null || true - ssh root@$TARGET_LAN_IP "ubus call system board" | tee system-$LABGRID_TARGET.json + - ssh root@$TARGET_LAN_IP "ba-cli 'DNS.Relay.X_PRPL-COM_Config.[Alias==\"lan\"].FlushCache()'" + - > for dut_init_script in $DUT_INIT_SCRIPTS; do echo "Running $dut_init_script"; /bin/sh "$dut_init_script";