Add timestamp to report file names for scripts which run tests

* Added functions.sh file to store reusable bash functions
* Replaced 'latest' in generated report names by timestamps

Related-PROD: PROD-37187
Change-Id: I9e2bc7989a685b0f2f94fb909a8f2f1cc7a6d803
diff --git a/k8s/workspace/run-openstack-func-smoke.sh b/k8s/workspace/run-openstack-func-smoke.sh
index 165902f..1119b28 100644
--- a/k8s/workspace/run-openstack-func-smoke.sh
+++ b/k8s/workspace/run-openstack-func-smoke.sh
@@ -1,4 +1,6 @@
 #!/bin/bash
+
+. "$(dirname "$0")/functions.sh"
 tenv=mos
 . /opt/si-tests/.sivenv/bin/activate
 cd $MY_PROJFOLDER/tmp
@@ -63,5 +65,7 @@
 fi
 cp ./artifacts/*.xml $MY_PROJFOLDER/reports/${tenv}-func/
 cd $MY_PROJFOLDER/reports/
-tparser -f r_xml -d -r $MY_CLIENTSHORTNAME-${tenv}-openstack-func-smoke-latest.html $MY_PROJFOLDER/reports/${tenv}-func/
+fname="$MY_CLIENTSHORTNAME-${tenv}-openstack-func-smoke-$(get_timestamp).html"
+tparser -f r_xml -d -r "${fname}" $MY_PROJFOLDER/reports/${tenv}-func/
+update_latest_report_to "${fname}"
 cd $MY_PROJFOLDER