THRIFT-217. Use "--gen py" instead of "-py" in build scripts


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@722333 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/py/explicit_module/runtest.sh b/test/py/explicit_module/runtest.sh
index 8659210..a2b07d2 100755
--- a/test/py/explicit_module/runtest.sh
+++ b/test/py/explicit_module/runtest.sh
@@ -1,13 +1,13 @@
 #!/bin/bash
 
 rm -rf gen-py
-../../../compiler/cpp/thrift -py test1.thrift || exit 1
-../../../compiler/cpp/thrift -py test2.thrift || exit 1
+../../../compiler/cpp/thrift --gen py test1.thrift || exit 1
+../../../compiler/cpp/thrift --gen py test2.thrift || exit 1
 PYTHONPATH=./gen-py python -c 'import foo.bar.baz' || exit 1
 PYTHONPATH=./gen-py python -c 'import test2' || exit 1
 PYTHONPATH=./gen-py python -c 'import test1' &>/dev/null && exit 1  # Should fail.
 cp -r gen-py simple
-../../../compiler/cpp/thrift -r -py test2.thrift || exit 1
+../../../compiler/cpp/thrift -r --gen py test2.thrift || exit 1
 PYTHONPATH=./gen-py python -c 'import test2' || exit 1
 diff -ur simple gen-py > thediffs
 file thediffs | grep -s -q empty || exit 1