VOL-5155 - triage failure in periodic-voltha-test-bbsim-2.12

jjb/pipeline/voltha/master/bbsim-tests.groovy
jjb/pipeline/voltha/voltha-2.11/bbsim-tests.groovy
--------------------------------------------------
  o Declare a local var for the Exception msg iam string.
  o No local var definition will result in call vars/getIam.groovy
    which mangles the string '** iam@4d684d2c' as the script address.

vars/pgrep_proc.groovy
vars/pkill_proc.groovy
----------------------
  o Fix boolean constant [fF]alse.

Change-Id: I989b5238926801af9417fee51424af79d7789c7d
diff --git a/jjb/pipeline/voltha/voltha-2.12/bbsim-tests.groovy b/jjb/pipeline/voltha/voltha-2.12/bbsim-tests.groovy
index 522d7f7..3909c4e 100644
--- a/jjb/pipeline/voltha/voltha-2.12/bbsim-tests.groovy
+++ b/jjb/pipeline/voltha/voltha-2.12/bbsim-tests.groovy
@@ -637,13 +637,14 @@
 ** Executing test ${target} on workflow ${workflow} with logging ${testLogging} and extra flags ${flags}
 ** -----------------------------------------------------------------------
 """)
-
                         try {
                             enter("execute_test (target=$target)")
                             execute_test(target, workflow, testLogging, teardown, flags)
                         }
+                        // groovylint-disable-next-line CatchException
                         catch (Exception err) {
-                            println("** ${iam}: EXCEPTION ${err}")
+                            String iamexc = getIam(name)
+                            println("** ${iamexc}: EXCEPTION ${err}")
                         }
                         finally {
                             leave("execute_test (target=$target)")