This is an automated email from the ASF dual-hosted git repository.

rshah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new e9b559be42 Fail t3c int tests if migrations fail, and print migration 
output (#7778)
e9b559be42 is described below

commit e9b559be42c8b4f2aefae6cce3a1865da59bb180
Author: Zach Hoffman <[email protected]>
AuthorDate: Wed Sep 6 10:41:38 2023 -0600

    Fail t3c int tests if migrations fail, and print migration output (#7778)
---
 cache-config/testing/docker/traffic_ops/run.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/cache-config/testing/docker/traffic_ops/run.sh 
b/cache-config/testing/docker/traffic_ops/run.sh
index 44fffcfdf0..da015f96aa 100755
--- a/cache-config/testing/docker/traffic_ops/run.sh
+++ b/cache-config/testing/docker/traffic_ops/run.sh
@@ -139,10 +139,18 @@ while ! nc $DB_SERVER $DB_PORT </dev/null; do
   fi
 done
 
+(
+set -o errexit
 # create the 'traffic_ops' database, tables and runs migrations
 mkdir -p /var/log/traffic_ops/
+touch /var/log/traffic_ops/to_admin.log /var/log/traffic_ops/tv_admin.log
+tail -f /var/log/traffic_ops/to_admin.log /var/log/traffic_ops/tv_admin.log &
 cd /opt/traffic_ops/app && db/admin --env=production reset >> 
/var/log/traffic_ops/to_admin.log 2>&1
 cd /opt/traffic_ops/app && db/admin --trafficvault --env=production reset >> 
/var/log/traffic_ops/tv_admin.log 2>&1
+) || {
+       echo Failed to run migrations
+       exit 1
+}
 
 # start traffic_ops
 start

Reply via email to