--- trunk/scons/grouptest.py 2009/07/02 03:14:35 2507 +++ trunk/scons/grouptest.py 2009/07/02 04:33:25 2508 @@ -40,6 +40,7 @@ res=res+"# It will be regenerated each time scons is run\n" res=res+"#############################################\n\n" res=res+"function failed()\n{\n echo ""Execution failed for $@""\n exit 1\n}\n" + res=res+"if [ $# -ne 1 ]\nthen\n echo Usage: $0 wrapper_options\necho Runs all unit tests. Options must be a single string.\nexit 2\nfi\n" res=res+'CMDSTR="getopt -uq -o p:n: -- $1"\nSTR=`$CMDSTR`\nNUMPROCS=1\n' res=res+'NUMNODES=1\n#This little complication is required because set --\n' res=res+'#does not seem to like -n as the first positional parameter\n' @@ -61,7 +62,6 @@ res=res+"\nexport OLD_PYTHON=`pwd`:$PYTHONPATH\nBINRUNNER=\"`pwd`/bin/escript -b $1\"\nPYTHONRUNNER=\"`pwd`/bin/escript $1\"\nBATCH_ROOT=`pwd`\n" res=res+"BUILD_DIR=$BATCH_ROOT/build/"+build_platform res=res+"\nif [ ! -d $BUILD_DIR ]\nthen\n echo Can not find build directory $BUILD_DIR\n exit 2\nfi\n" - res=res+"if [ $# -ne 1 ]\nthen\n echo Usage: $0 wrapper_options\necho Runs all unit tests. Options must be a single string.\nexit 2\nfi\n" #res=res+"if [ $# -lt 2 ]\nthen\n echo Usage: $0 bin_run_cmd python_run_cmd\n exit 2\nfi\n" return res makeHeader=staticmethod(makeHeader)