From 8d72e58f228a1a7544423c637c133ed3461e0888 Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Thu, 5 Aug 2021 12:34:02 +0200
Subject: [PATCH] Add timestamps to taiko tests

---
 .gitlab-ci.yml | 2 +-
 Dockerfile     | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fb243c290..764eb00c6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -866,7 +866,7 @@ kube-prometheus-stack-alerts:
   script:
     - *debug_information
     # Run the taiko tests for specific app
-    - python3 -m openappstack $HOSTNAME test --apps $RESOURCE
+    - unbuffer python3 -m openappstack $HOSTNAME test --apps $RESOURCE | ts -i | ts
   retry: 2
   artifacts:
     paths:
diff --git a/Dockerfile b/Dockerfile
index a1ca5cbf9..eb4a2de73 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,10 +21,14 @@ RUN \
     curl=~7.78.0-r0 \
     # needed for installing pycurl python module
     curl-dev=~7.78.0-r0 \
+    # Needed for "unbuffer" to timestamp cmds
+    expect=~5.45.4-r0 \
     gcc=~10.3.1_git20210424-r2 \
     git=~2.32.0-r0 \
     libffi-dev=3.3-r2 \
     make=~4.3-r0 \
+    # Needed for timestamp cmd "ts"
+    moreutils=~0.65-r0 \
     musl-dev=~1.2.2-r3 \
     npm=~7.17.0-r0 \
     openssh-client=~8.6_p1-r2 \
-- 
GitLab