blob: 6076b3b3d0c94e7a001c334a3dedd42fe7a1252e [file] [log] [blame]
Klement Sekeraf413bef2017-08-15 07:09:02 +02001#!/bin/bash
2
3if [ "$(ls -A ${VPP_TEST_FAILED_DIR})" ]
4then
5 if [ "${COMPRESS_FAILED_TEST_LOGS}" == "yes" ]
6 then
7 echo -n "Compressing files in temporary directories from failed test runs..."
8 cd ${VPP_TEST_FAILED_DIR}
9 for d in *
10 do
11 cd ${d}
12 find . ! -path . -print0 | xargs -0 -n1 gzip
13 cd ${VPP_TEST_FAILED_DIR}
14 done
15 echo "done."
16 else
17 echo "Not compressing files in temporary directories from failed test runs."
18 fi
19else
20 echo "No symlinks to failed tests' temporary directories found in ${VPP_TEST_FAILED_DIR}."
21fi