| *Start\ of\ trash\ directory\ of\ \'t[0-9][0-9][0-9][0-9]-*\':*) |
| test_name="${test_name%\'*}" |
| extract_embedded_trash () { |
| *End\ of\ trash\ directory\ of\ \'$test_name\'*) |
| error "unexpected end of input" |
| # Raw logs from Linux build jobs have CRLF line endings, while OSX |
| # build jobs mostly have CRCRLF, except an odd line every now and |
| # then that has CRCRCRLF. 'base64 -d' from 'coreutils' doesn't like |
| # CRs and complains about "invalid input", so remove all CRs at the |
| while find_embedded_trash |
| echo "Extracting trash directory of '$test_name'" |
| extract_embedded_trash |base64 -d |tar xzp |