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 3# found in the LICENSE file. 4 5import os 6import stat 7import unittest 8 9from telemetry import decorators 10from telemetry.util import support_binaries 11 12 13class SupportBinariesTest(unittest.TestCase): 14 @decorators.Enabled('linux') 15 def testFindPath(self): 16 md5sum_path = support_binaries.FindPath('md5sum_bin_host', 'linux') 17 self.assertNotEquals(md5sum_path, None) 18 self.assertTrue(os.path.isabs(md5sum_path)) 19 st = os.stat(md5sum_path) 20 self.assertTrue(st.st_mode & stat.S_IXUSR) 21