Index: chrome/test/functional/quasar/pyauto_quasar.py |
=================================================================== |
--- chrome/test/functional/quasar/pyauto_quasar.py (revision 0) |
+++ chrome/test/functional/quasar/pyauto_quasar.py (revision 0) |
@@ -0,0 +1,48 @@ |
+#!/usr/bin/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. |
+ |
+""" |
+Setup for Quasar Pyauto tests. |
Nirnimesh
2011/11/09 23:54:05
Move this to previous line.
(then leave a blank li
wud
2011/11/10 23:35:19
Done, here and elsewhere.
|
+Copied from chrome/test/funcational/media/pyauto_media.py. |
Nirnimesh
2011/11/09 23:54:05
funcational -> functional
wud
2011/11/10 23:35:19
Done.
|
+""" |
+ |
+import os |
+import sys |
+import tempfile |
+ |
+ |
+def _SetupPaths(): |
+ """Setting path to find pyauto_functional.py.""" |
+ quasar_dir = os.path.abspath(os.path.dirname(__file__)) |
+ sys.path.append(quasar_dir) |
+ sys.path.append(os.path.normpath(os.path.join(quasar_dir, os.pardir))) |
+ sys.path.append(os.path.normpath(os.path.join( |
Nirnimesh
2011/11/09 23:54:05
You don't need anything below this
wud
2011/11/10 23:35:19
Done.
|
+ quasar_dir, os.pardir, os.pardir, os.pardir, os.pardir, |
+ 'third_party', 'psutil'))) |
+ # Setting PYTHONPATH for reference build. |
+ if os.getenv('REFERENCE_BUILD'): |
+ reference_build_dir = os.getenv( |
+ 'REFERENCE_BUILD_DIR', |
+ # TODO(imasaki@): Change the following default value. |
+ # Default directory is just for testing so the correct directory |
+ # must be set in the build script. |
+ os.path.join(tempfile.gettempdir(), 'chrome-quasar-test')) |
+ sys.path.insert(0, reference_build_dir) |
+ |
+_SetupPaths() |
+ |
+import pyauto_functional |
+import pyauto |
Nirnimesh
2011/11/09 23:54:05
unused
wud
2011/11/10 23:35:19
Done.
|
+ |
+ |
+class Main(pyauto_functional.Main): |
+ """Main program for running PyAuto quasar tests.""" |
+ |
+ def __init__(self): |
+ pyauto_functional.Main.__init__(self) |
+ |
+ |
+if __name__ == '__main__': |
+ Main() |