Merge "[CORD-2966] Add log volume using hostPath to xos-core test"
diff --git a/.gitignore b/.gitignore
index cf52005..61195a5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,4 +7,5 @@
 # ignore dependent chart dirs
 xos-core/charts
 voltha/charts
+xos-core/charts
 xos-profiles/rcord-lite/charts
diff --git a/xos-core/templates/tests/test-xos-core-api.yaml b/xos-core/templates/tests/test-xos-core-api.yaml
index 86ed0a0..24c7a8c 100644
--- a/xos-core/templates/tests/test-xos-core-api.yaml
+++ b/xos-core/templates/tests/test-xos-core-api.yaml
@@ -22,10 +22,14 @@
   annotations:
     "helm.sh/hook": test-success
 spec:
+  restartPolicy: Never
   containers:
     - name: {{ .Release.Name }}-api-test
       image: {{ .Values.xos_api_testerImage }}
       imagePullPolicy: {{ .Values.imagePullPolicy }}
+      volumeMounts:
+        - name: log-volume
+          mountPath: /src/cord-api/Tests/Log/
       env:
         - name: SERVER_IP
           value: 'xos-chameleon'
@@ -38,4 +42,8 @@
         - name: SITE_NAME
           value: {{ .Values.cordSiteName | quote }}
       command: ["pybot", "-L", "TRACE", "-d", "Log", "-T", "Ch_DeploymentTest.txt", "Ch_SiteTest.txt", "Ch_UsersTest.txt", "Ch_SliceTest.txt", "Ch_ServiceTest.txt"]
-  restartPolicy: Never
+  volumes:
+    - name: log-volume
+      hostPath:
+        path: /tmp/helm_test_xos_core_logs_{{ dateInZone "20060102T030405.00Z" (now) "UTC"  }}
+        type: DirectoryOrCreate