~ubuntu-archive/ubuntu-archive-scripts/trunk

« back to all changes in this revision

Viewing changes to run-pm-notest

  • Committer: Adam Conrad
  • Date: 2019-10-18 09:32:04 UTC
  • Revision ID: adconrad@0c3.net-20191018093204-yewoy93q72thygo2
chdist: Commit production hack to avoid perl warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
set -e
3
 
 
4
 
DEFAULT_SERIES=mantic
5
 
 
6
 
export SERIES="${SERIES:-$DEFAULT_SERIES}"
7
 
 
8
 
cd "$HOME/proposed-migration"
9
 
[ -e STOP ] && exit 0
10
 
if ! lockfile -r0 ".run-proposed-migration-ubuntu-$SERIES-notest.lock"; then
11
 
        exit 1
12
 
fi
13
 
 
14
 
cleanup () {
15
 
    rm -f $HOME/proposed-migration/.run-proposed-migration-ubuntu-$SERIES-notest.lock
16
 
    [ -n "$tmpdir" ] && rm -rf "$tmpdir"
17
 
}
18
 
trap cleanup EXIT HUP INT QUIT TERM
19
 
 
20
 
logfile="log/$SERIES/$(date -u +%F/%T).notest.log"
21
 
mkdir -p "${logfile%/*}"
22
 
 
23
 
code/b1/britney run_notest >"$logfile" 2>&1