From 1de95568e7ff944529b9ab06667c2e32a9dcd84e Mon Sep 17 00:00:00 2001
From: Daniel van der Schuur <schuur@astron.nl>
Date: Fri, 21 Oct 2016 12:45:50 +0000
Subject: [PATCH] -Now removing and restoring the modelsim build dir.

---
 tools/oneclick/base/modelsim_regression_test_vhdl_cron.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/oneclick/base/modelsim_regression_test_vhdl_cron.sh b/tools/oneclick/base/modelsim_regression_test_vhdl_cron.sh
index b2fd3125c4..c68dd2419a 100755
--- a/tools/oneclick/base/modelsim_regression_test_vhdl_cron.sh
+++ b/tools/oneclick/base/modelsim_regression_test_vhdl_cron.sh
@@ -41,6 +41,12 @@ rm $LOGFILE
 ###############################################################################
 source $HOME/.bashrc
 
+###############################################################################
+# Empty the simulation build dir, re-create it with modelsim_config.py
+###############################################################################
+rm -rf $RADIOHDL/build/unb1/modelsim
+python $RADIOHDL/tools/oneclick/base/modelsim_config.py
+
 ###############################################################################
 # Perform the regression test and put the output in a log file
 ###############################################################################
-- 
GitLab