diff options
author | achuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-02 21:57:07 +0000 |
---|---|---|
committer | achuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-02 21:57:07 +0000 |
commit | c660de10b58b985273675396a214a3f4bf968a20 (patch) | |
tree | 68a5510a64ec3e19de58c1cee98e248b862e0957 | |
parent | 94c520ce9a1492153d823441e02dc649ac56e299 (diff) | |
download | chromium_src-c660de10b58b985273675396a214a3f4bf968a20.zip chromium_src-c660de10b58b985273675396a214a3f4bf968a20.tar.gz chromium_src-c660de10b58b985273675396a214a3f4bf968a20.tar.bz2 |
Fix credentials initialization.
BUG=342884
TEST=manual
NOTRY=True
Review URL: https://codereview.chromium.org/269773004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267935 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | tools/telemetry/telemetry/core/backends/chrome/cros_test_case.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/telemetry/telemetry/core/backends/chrome/cros_test_case.py b/tools/telemetry/telemetry/core/backends/chrome/cros_test_case.py index e17df184..5fd71d6 100644 --- a/tools/telemetry/telemetry/core/backends/chrome/cros_test_case.py +++ b/tools/telemetry/telemetry/core/backends/chrome/cros_test_case.py @@ -78,8 +78,8 @@ class CrOSTestCase(unittest.TestCase): """Returns credentials from file.""" credentials_path = os.path.join(os.path.dirname(__file__), credentials_path) - credentials = [] if os.path.isfile(credentials_path): with open(credentials_path) as f: - credentials = f.read().rstrip().split(':') - return credentials + username, password = f.read().rstrip().split(':') + return (username, password) + return (None, None) |