summaryrefslogtreecommitdiffstats
path: root/common/scripts/agl-extend-test.sh
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2023-05-31 11:34:52 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2023-05-31 13:03:45 +0200
commitc98a7d5fa84c45724042cc5a513464070dff5ecb (patch)
tree03f9491a539acf9ecf7d02d84d3e547bca016e7a /common/scripts/agl-extend-test.sh
parentecc62413b8ee33ecf886b2f4161b486c47db38de (diff)
Disable color output in pytest
Disable the color output to avoid escape sequences in LAVA logs. Bug-AGL: SPEC-4817 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: Iff38a79b72952416792c4c66d1e482736d308544
Diffstat (limited to 'common/scripts/agl-extend-test.sh')
-rwxr-xr-xcommon/scripts/agl-extend-test.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/scripts/agl-extend-test.sh b/common/scripts/agl-extend-test.sh
index 51dfcb1..847d2f2 100755
--- a/common/scripts/agl-extend-test.sh
+++ b/common/scripts/agl-extend-test.sh
@@ -1,20 +1,26 @@
#!/bin/bash
+export NO_COLOR=1
+export TERM=dumb
pre_check=`which agl-test`
if [ -n "$pre_check" ] ; then
- agl-test
echo "agl-extend-test is present"
else
echo "agl-test is not installed, abort this test"
exit 127
fi
+# execute
+agl-test
+
if [ -x ./artiproxy-upload.sh ] ; then
LOG_DIR='/var/run/agl-test/logs/log-to-report'
ZIP_FILE=`ls ${LOG_DIR} | grep agl-test-log*`
+ ls -alh ${LOG_DIR}
+
if [ -z $ZIP_FILE ] ; then
echo "Cannot find agl-extend-test log"
exit 1