Klement Sekera | f413bef | 2017-08-15 07:09:02 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | if [ "$(ls -A ${VPP_TEST_FAILED_DIR})" ] |
| 4 | then |
| 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 |
| 19 | else |
| 20 | echo "No symlinks to failed tests' temporary directories found in ${VPP_TEST_FAILED_DIR}." |
| 21 | fi |