Commit 2521ed4e authored by Alexandros Frantzis's avatar Alexandros Frantzis

Reduce trace fetching log verbosity in run-tests.sh

Only show detailed fetch log output in case of error.
Signed-off-by: Alexandros Frantzis's avatarAlexandros Frantzis <alexandros.frantzis@collabora.com>
parent 13f48521
#!/usr/bin/env bash
set -x
fetch_trace()
{
_trace="${1//,/?}"
echo -n "[fetch_trace] Fetching $1... "
_output=$(git lfs pull -I "$_trace" 2>&1)
if [[ $? -ne 0 || ! -f "$1" ]]; then
echo "ERROR"
echo "$_output"
else
echo "OK"
fi
}
ret=0
for trace in $(git lfs ls-files -n -I \*.$1)
do
_trace="${trace//,/?}"
git lfs pull -I "$_trace"
fetch_trace "$trace"
python3 $CI_PROJECT_DIR/scripts/dump_trace_images.py --device-name "$DEVICE_NAME" "$trace"
python3 $CI_PROJECT_DIR/scripts/diff_trace_images.py --device-name "$DEVICE_NAME" --output-dir "$CI_PROJECT_DIR/results" "$trace"
if [[ $? -ne 0 ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment