~mdeslaur/apport/machooks

« back to all changes in this revision

Viewing changes to test/run

  • Committer: Martin Pitt
  • Date: 2011-06-20 13:06:52 UTC
  • Revision ID: martin.pitt@canonical.com-20110620130652-2faa9pzppoj5xjmi
test/run: Check $PYTHON for using a different Python interpreter (such as "python3") for the tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
for m in $modules; do
44
44
    echo "--- Testing $m ---"
45
45
    if [ -n "$local" ]; then
46
 
        python -tt ./${m}.py -v
 
46
        ${PYTHON:=python} -tt ./${m}.py -v
47
47
    else
48
 
        python -tt -m $m -v
 
48
        ${PYTHON:=python} -tt -m $m -v
49
49
    fi
50
50
done
51
51
 
57
57
 
58
58
if [ "$local" ]; then
59
59
    $mydir/crash-digger
60
 
    python $mydir/../data/general-hooks/parse_segv.py -v
 
60
    $PYTHON $mydir/../data/general-hooks/parse_segv.py -v
61
61
else
62
 
    python $mydir/../general-hooks/parse_segv.py -v
 
62
    $PYTHON $mydir/../general-hooks/parse_segv.py -v
63
63
fi
64
64
 
65
65
if [ "$local" ]; then