317
by Steve Langasek
Move the britney 'notest' runs into a separate script so that they're not in the critical loop |
1 |
#! /bin/sh
|
2 |
set -e
|
|
3 |
||
359
by Steve Langasek
mantic->noble |
4 |
DEFAULT_SERIES=noble |
317
by Steve Langasek
Move the britney 'notest' runs into a separate script so that they're not in the critical loop |
5 |
|
6 |
export SERIES="${SERIES:-$DEFAULT_SERIES}" |
|
7 |
||
8 |
cd "$HOME/proposed-migration" |
|
9 |
[ -e STOP ] && exit 0 |
|
318
by Steve Langasek
misc cleanups |
10 |
if ! lockfile -r0 ".run-proposed-migration-ubuntu-$SERIES-notest.lock"; then |
317
by Steve Langasek
Move the britney 'notest' runs into a separate script so that they're not in the critical loop |
11 |
exit 1 |
12 |
fi
|
|
13 |
||
14 |
cleanup () { |
|
318
by Steve Langasek
misc cleanups |
15 |
rm -f $HOME/proposed-migration/.run-proposed-migration-ubuntu-$SERIES-notest.lock |
317
by Steve Langasek
Move the britney 'notest' runs into a separate script so that they're not in the critical loop |
16 |
[ -n "$tmpdir" ] && rm -rf "$tmpdir" |
17 |
}
|
|
18 |
trap cleanup EXIT HUP INT QUIT TERM
|
|
19 |
||
318
by Steve Langasek
misc cleanups |
20 |
logfile="log/$SERIES/$(date -u +%F/%T).notest.log" |
317
by Steve Langasek
Move the britney 'notest' runs into a separate script so that they're not in the critical loop |
21 |
mkdir -p "${logfile%/*}" |
22 |
||
319
by Steve Langasek
Make the britney arguments correspond |
23 |
code/b1/britney run_notest >"$logfile" 2>&1 |