Author: phunt Date: Mon Jun 1 21:00:09 2009 New Revision: 780828 URL: http://svn.apache.org/viewvc?rev=780828&view=rev Log: ZOOKEEPER-421. zkpython run_tests.sh is missing #!
Modified: hadoop/zookeeper/trunk/CHANGES.txt hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/connection_test.py (contents, props changed) hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/create_test.py (contents, props changed) hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/exists_test.py (contents, props changed) hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/get_set_test.py (contents, props changed) hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/run_tests.sh hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/zktestbase.py (contents, props changed) Modified: hadoop/zookeeper/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=780828&r1=780827&r2=780828&view=diff ============================================================================== --- hadoop/zookeeper/trunk/CHANGES.txt (original) +++ hadoop/zookeeper/trunk/CHANGES.txt Mon Jun 1 21:00:09 2009 @@ -108,6 +108,9 @@ ZOOKEEPER-419. Reference counting bug in Python bindings causes abort errors (henry robinson via phunt) + ZOOKEEPER-421. zkpython run_tests.sh is missing #! + (henry robinson via phunt) + IMPROVEMENTS: ZOOKEEPER-308. improve the atomic broadcast performance 3x. (breed via mahadev) Modified: hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/connection_test.py URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/connection_test.py?rev=780828&r1=780827&r2=780828&view=diff ============================================================================== --- hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/connection_test.py (original) +++ hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/connection_test.py Mon Jun 1 21:00:09 2009 @@ -1,3 +1,5 @@ +#!/usr/bin/python +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information Propchange: hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/connection_test.py ------------------------------------------------------------------------------ svn:executable = * Modified: hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/create_test.py URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/create_test.py?rev=780828&r1=780827&r2=780828&view=diff ============================================================================== --- hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/create_test.py (original) +++ hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/create_test.py Mon Jun 1 21:00:09 2009 @@ -1,3 +1,5 @@ +#!/usr/bin/python +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information Propchange: hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/create_test.py ------------------------------------------------------------------------------ svn:executable = * Modified: hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/exists_test.py URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/exists_test.py?rev=780828&r1=780827&r2=780828&view=diff ============================================================================== --- hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/exists_test.py (original) +++ hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/exists_test.py Mon Jun 1 21:00:09 2009 @@ -1,3 +1,5 @@ +#!/usr/bin/python +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information Propchange: hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/exists_test.py ------------------------------------------------------------------------------ svn:executable = * Modified: hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/get_set_test.py URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/get_set_test.py?rev=780828&r1=780827&r2=780828&view=diff ============================================================================== --- hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/get_set_test.py (original) +++ hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/get_set_test.py Mon Jun 1 21:00:09 2009 @@ -1,3 +1,5 @@ +#!/usr/bin/python +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information Propchange: hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/get_set_test.py ------------------------------------------------------------------------------ svn:executable = * Modified: hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/run_tests.sh URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/run_tests.sh?rev=780828&r1=780827&r2=780828&view=diff ============================================================================== --- hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/run_tests.sh (original) +++ hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/run_tests.sh Mon Jun 1 21:00:09 2009 @@ -1,3 +1,5 @@ +#!/bin/sh +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information Modified: hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/zktestbase.py URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/zktestbase.py?rev=780828&r1=780827&r2=780828&view=diff ============================================================================== --- hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/zktestbase.py (original) +++ hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/zktestbase.py Mon Jun 1 21:00:09 2009 @@ -1,3 +1,5 @@ +#!/usr/bin/python +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -22,8 +24,12 @@ self.host = "localhost:22182" self.connected = False self.handle = -1 - f = open("build/test/logs/" + self.__class__.__name__ +".log","w") - zookeeper.set_log_stream(f) + try: + f = open("build/test/logs/" + self.__class__.__name__ +".log","w") + zookeeper.set_log_stream(f) + except IOError: + print "Couldn't open build/test/logs/" + self.__class__.__name__ +".log for writing" + def setUp(self): self.callback_flag = False Propchange: hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/zktestbase.py ------------------------------------------------------------------------------ svn:executable = *