From cd86c86fe83568a1c9de889ee528e2abfa87395d Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Fri, 13 Aug 2021 20:48:48 +0200 Subject: [PATCH] Remove package after build Signed-off-by: Janos SUTO --- tests/setup.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/setup.inc b/tests/setup.inc index 421b5cc3..06d2a964 100644 --- a/tests/setup.inc +++ b/tests/setup.inc @@ -13,6 +13,13 @@ setup() { add_data_officer "piler1" } +cleanup_package() { + local pkg="$1" + + log "Removing ${PACKAGE_DIR}/${pkg}" + rm -f "${PACKAGE_DIR}/${pkg}" +} + launch_containers() { log "starting syslog server" @@ -28,6 +35,8 @@ launch_containers() { "$docker_image" wait_for_sleep_cycle_in_container "piler1" + + cleanup_package "$PACKAGE" } create_rules() {