From 7d2909c9ab45e7ccab8075473e95e879897561ae Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Wed, 30 Oct 2024 11:06:58 +0100 Subject: [PATCH] smoke: unconfigure everything at the end To allow running smoke tests with a manually started grout in a separate terminal without restarting the daemon, cleanup all configured objects before ending the tests. Signed-off-by: Robin Jarry --- smoke/_init.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/smoke/_init.sh b/smoke/_init.sh index a4febd13..9f8aa808 100644 --- a/smoke/_init.sh +++ b/smoke/_init.sh @@ -12,6 +12,38 @@ fi cleanup() { set +e sh -x $tmp/cleanup + + # delete all non-port interfaces first + grcli show interface all | + grep -Ev -e ^NAME -e '\