From 722b5ff344b6ba968733e0df95c3bf3ecc90ff84 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 7 Mar 2017 17:49:13 +0000 Subject: [PATCH] Ensure that the terminal type is set The terminal type is set to 'unknown' by default and is set when a user logs in to a terminal. The 'unknown' terminal type causes the 'clear' command in the upgrade job to fail. We set the terminal type for the gate-check-commit script as it is not using a tty. Change-Id: Id460184dbfec1bc56bc05baa67924b5f724b5111 --- scripts/gate-check-commit.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/gate-check-commit.sh b/scripts/gate-check-commit.sh index 693a1ebecd..fd87484b03 100755 --- a/scripts/gate-check-commit.sh +++ b/scripts/gate-check-commit.sh @@ -30,6 +30,9 @@ export PYTHONUNBUFFERED=1 # Extra options to pass to the AIO bootstrap process export BOOTSTRAP_OPTS=${BOOTSTRAP_OPTS:-''} +# Ensure the terminal type is set +export TERM=linux + # This variable is being added to ensure the gate job executes an exit # function at the end of the run. export OSA_GATE_JOB=true