Index: tools/site_compare/scrapers/firefox/firefox2.py |
diff --git a/tools/site_compare/scrapers/firefox/firefox2.py b/tools/site_compare/scrapers/firefox/firefox2.py |
old mode 100644 |
new mode 100755 |
index fa0d6201200ef472941030d48dc1f10bd09afb36..2181f588f818b5fd4ab73d1da9ad1db8fe5f74fd |
--- a/tools/site_compare/scrapers/firefox/firefox2.py |
+++ b/tools/site_compare/scrapers/firefox/firefox2.py |
@@ -1,5 +1,5 @@ |
-#!/usr/bin/python2.4 |
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
+#!/usr/bin/env python |
+# Copyright (c) 2011 The Chromium Authors. All rights reserved. |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
@@ -232,7 +232,7 @@ def Time(urls, size, timeout, **kwargs): |
return ret |
-if __name__ == "__main__": |
+def main(): |
# We're being invoked rather than imported, so run some tests |
path = r"c:\sitecompare\scrapes\Firefox\2.0.0.6" |
windowing.PreparePath(path) |
@@ -242,4 +242,8 @@ if __name__ == "__main__": |
["http://www.microsoft.com", "http://www.google.com", |
"http://www.sun.com"], |
path, (1024, 768), (0, 0)) |
+ return 0 |
+ |
+if __name__ == "__main__": |
+ sys.exit(main()) |