blob: 258fe258f2b4411354cb83f8bbb7e13efcbdfff3 [file] [log] [blame]
# Copyright 2014 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.
import os
import stat
import unittest
from catapult_base import support_binaries
from telemetry import decorators
class SupportBinariesTest(unittest.TestCase):
@decorators.Enabled('linux')
def testFindPath(self):
md5sum_path = support_binaries.FindPath(
'md5sum_bin_host', 'x86_64', 'linux')
self.assertNotEquals(md5sum_path, None)
self.assertTrue(os.path.isabs(md5sum_path))
st = os.stat(md5sum_path)
self.assertTrue(st.st_mode & stat.S_IXUSR)