[Aether-474] Check if test is to be run before trying to access it's
info
Change-Id: Id61c5a83829dba6cfcfafe6013b7336848e5c6e8
diff --git a/TestON/JenkinsFile/CommonJenkinsFile.groovy b/TestON/JenkinsFile/CommonJenkinsFile.groovy
index 84eee47..59a91ca 100644
--- a/TestON/JenkinsFile/CommonJenkinsFile.groovy
+++ b/TestON/JenkinsFile/CommonJenkinsFile.groovy
@@ -143,7 +143,7 @@
// pureTestName is what is passed to the cli, here we check to see if there are any params to pass as well
if ( test.contains( "WithFlowObj" ) ){
pureTestName = test - "WithFlowObj"
- } else if ( testsToRun[ test ].keySet().contains( "test" ) ){
+ } else if ( toBeRun && testsToRun[ test ].keySet().contains( "test" ) ){
pureTestName = testsToRun[ test ][ "test" ]
} else {
pureTestName = test