Merge pull request #48 from rosslagerwall/py-version

Require python version
This commit is contained in:
Nick Mathewson 2012-03-26 11:21:51 -07:00
commit 7f62f4ab2e

View File

@ -106,7 +106,7 @@ run_tests () {
FAILED=yes FAILED=yes
fi fi
announce_n " test-dumpevents: " announce_n " test-dumpevents: "
if test "`which python 2>/dev/null`" != ""; then if python -c 'import sys; assert(sys.version_info >= (2, 4))' 2>/dev/null; then
if $TEST_DIR/test-dumpevents | python $TEST_DIR/check-dumpevents.py >> "$TEST_OUTPUT_FILE" ; if $TEST_DIR/test-dumpevents | python $TEST_DIR/check-dumpevents.py >> "$TEST_OUTPUT_FILE" ;
then then
announce OKAY ; announce OKAY ;