Partial cleanup in utils.utils and its dependencies. Add shebang and
Main function to client and server scripts. Minor cleanups in
automation.clients.* Fixed some lint warnings.
Major changes:
* Replace utils.{Serialize,Deserialize} with calls to
pickle.{dumps,loads}.
* Remove utils.ExitWithCode.
* Use "with open(...) as fileobj" to handle file IO.
Tested:
automation/server/server.py -m ~/local/test_pool.csv -n
automation/clients/client.py
automation/clients/nightly.py
automation/clients/output_test.py
automation/clients/pwd_test.py
automation/clients/status_client.py
automation/clients/test_client.py --chromeos-versions latest
automation/clients/update_client.py
automation/clients/web/index.py
PRESUBMIT=passed
R=asharif,bjanakiraman,raymes
APPROVED=raymes
DELTA=567 (172 added, 153 deleted, 242 changed)
OCL=53166-p2
RCL=53194-p2
RDATE=2011/05/27 14:11:18
P4 change: 42646120
diff --git a/v14/run_tests.py b/v14/run_tests.py
index 6485090..9147160 100755
--- a/v14/run_tests.py
+++ b/v14/run_tests.py
@@ -71,5 +71,4 @@
return retval
if __name__ == "__main__":
- retval = Main(sys.argv)
- utils.ExitWithCode(retval)
+ sys.exit(Main(sys.argv))