Fixed gating job for work with salt-formulas tests

Change-Id: If242277034269c80e86158bcbbb78764e2c5de31
diff --git a/gating-pipeline.groovy b/gating-pipeline.groovy
index 89ac78f..3ac493c 100644
--- a/gating-pipeline.groovy
+++ b/gating-pipeline.groovy
@@ -25,6 +25,10 @@
           if (JOBS_NAMESPACE in plural_namespaces){
             jobsNamespace = JOBS_NAMESPACE.substring(0, JOBS_NAMESPACE.length() - 1)
           }
+          // salt-formulas tests have -latest on end of the name
+          if(JOBS_NAMESPACE.equals("salt-formulas")){
+            gerritProject=gerritProject+"-latest"
+          }
           def testJob = String.format("test-%s-%s", jobsNamespace, gerritProject)
           if (_jobExists(testJob)) {
             common.infoMsg("Test job ${testJob} found, running")