[VOL-4395] (Part of) Added support to enable/disable per-test voltha logging in bbsim based periodic job

Change-Id: I1fafbe7812d45ff38d0b8bcaee11a41a76b8994d
diff --git a/libraries/utils.robot b/libraries/utils.robot
index aa5f060..9c24def 100755
--- a/libraries/utils.robot
+++ b/libraries/utils.robot
@@ -1114,7 +1114,10 @@
     Run Keyword If    ${kail_process}    Terminate Process    ${kail_process}
     ${test_logfile}=    Run Keyword If    "${container_log_dir}" != "${None}"
     ...    Join Path    ${container_log_dir}    ${label}-combined.log
-    Run Keyword If Test Passed    Run Keyword If    "${test_logfile}" != "${None}"    Remove File    ${test_logfile}
+    Run Keyword If Test Passed
+    ...    Run Keyword If    "${logging}" == "False"
+    ...    Run Keyword If    "${test_logfile}" != "${None}"
+    ...    Remove File    ${test_logfile}
     Run Keyword If    ${has_dataplane}    Echo Message to OLT Logs     END ${label}
 
 Clean Up Linux