Index: chrome/test/pyautolib/pyauto.py |
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py |
index 815415a1252f344ef744944f4fc2f98a5e44613d..a0a7c47fb9f58463f020704059571d6684cdf04d 100644 |
--- a/chrome/test/pyautolib/pyauto.py |
+++ b/chrome/test/pyautolib/pyauto.py |
@@ -259,6 +259,17 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): |
else: |
os.kill(pid, signal.SIGTERM) |
+ def GetPrivateInfo(self): |
+ """Fetch info from private_tests_info.txt in private dir. |
+ |
+ Returns: |
+ a dictionary of items from private_tests_info.txt |
+ """ |
+ private_file = os.path.join( |
+ self.DataDir(), 'private', 'private_tests_info.txt') |
+ assert os.path.exists(private_file), '%s missing' % private_file |
+ return self.EvalDataFrom(private_file) |
+ |
def WaitUntil(self, function, timeout=-1, retry_sleep=0.25, args=[], |
expect_retval=None): |
"""Poll on a condition until timeout. |