New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 81829


Ignore:
Timestamp:
08/05/11 10:15:13 (4 years ago)
Author:
jmr@…
Message:

mpab: have gather_archives.sh look for logs in their tmp location as well, in case mpab didn't finish cleanly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/mpab/gather_archives.sh

    r81645 r81829  
    11#!/bin/sh 
     2 
     3CHROOTSUBDIR=mpchroot 
     4dataDir=$(pwd) 
     5if [[ -n "$MPAB_DATA" ]]; then 
     6   dataDir=$MPAB_DATA 
     7fi 
     8chrootPath="${dataDir}/${CHROOTSUBDIR}" 
     9OSMajor=`uname -r | sed 's/\..*//'` 
     10# xcodebuild breaks in chroots on 10.6 
     11if [[ $1 = "-n" || $OSMajor -ge 10 ]]; then 
     12    chrootPath="" 
     13    if [[ $1 = "-n" ]]; then 
     14        shift 
     15    fi 
     16fi 
    217 
    318if [[ -z "$PORTLISTFILE" ]]; then 
     
    2136fi 
    2237 
     38# if mpab was killed due to a timeout, logs will still be in the tmp dir 
     39if ! ls logs-* > /dev/null 2>&1 ; then 
     40    now=`date '+%Y%m%d-%H%M%S'` 
     41    baseDir=$(dirname $0) 
     42    mkdir ${baseDir}/logs-${now} 
     43    mv ${chrootPath}/var/tmp/portresults/fail ${baseDir}/logs-${now} 
     44    mv ${chrootPath}/var/tmp/portresults/success ${baseDir}/logs-${now} 
     45    chmod -R a+rX ${baseDir}/logs-${now} 
     46fi 
     47 
    2348for portname in $ports; do 
    2449    if ls logs-*/success/${portname}.log > /dev/null 2>&1 ; then 
Note: See TracChangeset for help on using the changeset viewer.