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