From 5b5765d8a3ee2c6d1ac8165d94ebf9efc9fa5575 Mon Sep 17 00:00:00 2001 From: Ramil Valitov Date: Tue, 7 Jul 2020 12:29:21 +0300 Subject: [PATCH] [add] clear cache in tests --- tests/all.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/all.sh b/tests/all.sh index b1f65c7..89b2fcf 100644 --- a/tests/all.sh +++ b/tests/all.sh @@ -131,6 +131,13 @@ oneTimeSetUp() { echo "All done, starting tests..." } +#Called before every test +setUp() { + #Delete all cache files + sudo rm -rf "/etc/zabbix/*.cache" +} + +#Called after every test tearDown() { restoreUserParameters sleep 2