forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun
More file actions
executable file
·30 lines (20 loc) · 625 Bytes
/
run
File metadata and controls
executable file
·30 lines (20 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
program=${0##*/}
progdir=${0%/*}
. $progdir/shell-utils
cd $progdir/.. # now at trunk/
pidfile=$(test/test-setup) # create a patched django for test purposes, and more
[ "$pidfile" ] || die "Didn't get a pidfile name"
test/run-pyflakes ietf
# Trap keyboard interrupt to ensure the test/teardown is run if we interrupt the tests
trap 'echo "$program($LINENO): Caught Interrupt"' INT
# run tests with our patched django
set -m
PYTHONPATH=test:test/lib URLPREFIX="$*" python ietf/manage.py test &
pid=$!
echo $pid > $pidfile
fg %1
wait $pid
# reset keyboard interrupt trap
trap INT
test/test-teardown