Eric Newberry | 0af79b6 | 2020-04-29 00:55:16 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Collect logs from testing nodes |
Eric Newberry | e69cb69 | 2015-07-08 22:46:01 -0700 | [diff] [blame] | 3 | |
Eric Newberry | 0af79b6 | 2020-04-29 00:55:16 -0700 | [diff] [blame] | 4 | if [[ ${1} == docker ]]; then |
| 5 | integPath=/home/integ/integration-tests |
| 6 | outPath=/integ/logs/${2} |
| 7 | elif [[ ${1} == vbox ]]; then |
| 8 | integPath=/home/integ/integration-tests |
| 9 | outPath=/vagrant/logs/${2} |
| 10 | else |
| 11 | echo "Invalid test platform specified" |
| 12 | exit 1 |
| 13 | fi |
| 14 | |
| 15 | cd ${integPath} |
| 16 | tar -cf - --ignore-failed-read $(git status -s -uall --porcelain --ignored | awk '$1!="D" && $2!~".pyc$"{print $2}' | grep -v -e "^.vagrant" -e "^logs/" -e "^prepare" -e "^temp/") | tar -xf - -C "${outPath}" |