You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by sh...@apache.org on 2009/06/15 07:38:20 UTC

svn commit: r784655 - in /hadoop/avro/trunk: CHANGES.txt src/test/py/testio.py

Author: sharad
Date: Mon Jun 15 05:38:20 2009
New Revision: 784655

URL: http://svn.apache.org/viewvc?rev=784655&view=rev
Log:
AVRO-51. Fix testio.py to exit correctly. Contributed by Philip Zeyliger.

Modified:
    hadoop/avro/trunk/CHANGES.txt
    hadoop/avro/trunk/src/test/py/testio.py

Modified: hadoop/avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/CHANGES.txt?rev=784655&r1=784654&r2=784655&view=diff
==============================================================================
--- hadoop/avro/trunk/CHANGES.txt (original)
+++ hadoop/avro/trunk/CHANGES.txt Mon Jun 15 05:38:20 2009
@@ -95,3 +95,6 @@
 
     AVRO-45. Fix c++ compliation so that python script need not be
     made executable.  (Scott Banachowski via cutting)
+
+    AVRO-51. Fix testio.py to exit correctly. (Philip Zeyliger 
+    via sharad)

Modified: hadoop/avro/trunk/src/test/py/testio.py
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/src/test/py/testio.py?rev=784655&r1=784654&r2=784655&view=diff
==============================================================================
--- hadoop/avro/trunk/src/test/py/testio.py (original)
+++ hadoop/avro/trunk/src/test/py/testio.py Mon Jun 15 05:38:20 2009
@@ -210,7 +210,7 @@
 if __name__ == '__main__':
   if len(sys.argv) != 4:
     print "Usage: testio.py <schemafile> <outputfile> <count>"
-    exit
+    sys.exit(1)
   schm = schema.parse(open(sys.argv[1]).read())
   file = sys.argv[2]
   count = int(sys.argv[3])