Excluding test pods from cleanup script in MCORD pipeline

Change-Id: I2b4791b6d05f774a321da1a4e1b5287765249d94
diff --git a/Jenkinsfile-mcord-local-build b/Jenkinsfile-mcord-local-build
index 5609414..4d910a9 100644
--- a/Jenkinsfile-mcord-local-build
+++ b/Jenkinsfile-mcord-local-build
@@ -46,11 +46,11 @@
                             stage("Cleanup SR-IOV CNI and SR-IOV Network Device Plugin") {
                                 sh returnStdout: true, script: """
                                 export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf
-                                kubectl delete -f mcord/cni-config/05-sriov-device-plugin.yaml
-                                kubectl delete -f mcord/cni-config/04-sriov-device-plugin-configmap.yaml
-                                kubectl delete -f mcord/cni-config/03-network-definition.yaml
-                                kubectl delete -f mcord/cni-config/02-network-crd.yaml
-                                kubectl delete -f mcord/cni-config/01-cni-service-account.yaml
+                                kubectl delete -f mcord/cni-config/05-sriov-device-plugin.yaml || true
+                                kubectl delete -f mcord/cni-config/04-sriov-device-plugin-configmap.yaml || true
+                                kubectl delete -f mcord/cni-config/03-network-definition.yaml || true
+                                kubectl delete -f mcord/cni-config/02-network-crd.yaml || true
+                                kubectl delete -f mcord/cni-config/01-cni-service-account.yaml || true
                                 """
                             }
                         }
@@ -59,7 +59,7 @@
                         waitUntil {
                             kubectl_deleted = sh returnStdout: true, script: """
                             export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf &&
-                            kubectl get pods --all-namespaces --no-headers | grep -E -v 'kube-system|docker-registry|mavenrepo|ponnet' | wc -l
+                            kubectl get pods --all-namespaces --no-headers | grep -E -v 'kube-system|docker-registry|mavenrepo|ponnet|test' | wc -l
                             """
                             return kubectl_deleted.toInteger() == 0
                         }