[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] better python test patch
The python test in xen sources is a bit ugly, and will requires manual intervention everytime a new python version is available. The following patch use python internal computation instead. diff -Naur xen-3.0.3_0-src/tools/check/check_python xen-3.0.3_0-src.better-python-check/tools/check/check_python --- xen-3.0.3_0-src/tools/check/check_python 2006-10-15 14:22:03.000000000 +0200 +++ xen-3.0.3_0-src.better-python-check/tools/check/check_python 2006-12-11 16:26:01.000000000 +0100 @@ -7,4 +7,4 @@ exit 1 } -python -V 2>&1 | cut -d ' ' -f 2 | grep -q '^2.[2345]' || error +python -c 'import sys; sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2);' || error _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |