| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 import stat | 6 import stat |
| 7 import unittest | 7 import unittest |
| 8 | 8 |
| 9 from telemetry import decorators | 9 from telemetry import decorators |
| 10 from telemetry.util import support_binaries | 10 from telemetry.util import support_binaries |
| 11 | 11 |
| 12 | 12 |
| 13 class SupportBinariesTest(unittest.TestCase): | 13 class SupportBinariesTest(unittest.TestCase): |
| 14 @decorators.Enabled('linux') | 14 @decorators.Enabled('linux') |
| 15 def testFindPath(self): | 15 def testFindPath(self): |
| 16 md5sum_path = support_binaries.FindPath('md5sum_bin_host', 'linux') | 16 md5sum_path = support_binaries.FindPath( |
| 17 'md5sum_bin_host', 'x86_64', 'linux') |
| 17 self.assertNotEquals(md5sum_path, None) | 18 self.assertNotEquals(md5sum_path, None) |
| 18 self.assertTrue(os.path.isabs(md5sum_path)) | 19 self.assertTrue(os.path.isabs(md5sum_path)) |
| 19 st = os.stat(md5sum_path) | 20 st = os.stat(md5sum_path) |
| 20 self.assertTrue(st.st_mode & stat.S_IXUSR) | 21 self.assertTrue(st.st_mode & stat.S_IXUSR) |
| OLD | NEW |