jjb: xci: Use the 'ts' utility to print timestamps on executed steps. 15/52415/1
authorMarkos Chandras <mchandras@suse.de>
Wed, 21 Feb 2018 15:12:52 +0000 (15:12 +0000)
committerMarkos Chandras <mchandras@suse.de>
Wed, 21 Feb 2018 15:12:52 +0000 (15:12 +0000)
We can use the 'ts' utility to print timestamps on every executed
command so we can keep track on the duration of each task and the
job overall.

Change-Id: I77d5d66c0146f943d805612ca5b47e2eed3ffc41
Signed-off-by: Markos Chandras <mchandras@suse.de>
jjb/xci/bifrost-verify.sh
jjb/xci/xci-start-new-vm.sh

index 451f33b..d3a37ce 100755 (executable)
@@ -28,7 +28,7 @@ set -o pipefail
 
 cd ~/bifrost
 # provision 3 VMs; xcimaster, controller, and compute
-./scripts/bifrost-provision.sh
+./scripts/bifrost-provision.sh | ts
 
 sudo -H -E virsh list
 EOF
index b72c339..2c6ec3f 100755 (executable)
@@ -53,7 +53,7 @@ if [[ ! -z ${WORKSPACE+x} && $GERRIT_PROJECT != "releng-xci" ]]; then
 fi
 
 cd xci
-./xci-deploy.sh
+./xci-deploy.sh | ts
 EOF
 chmod a+x xci_test.sh