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.
9 from catapult_base
import support_binaries
10 from telemetry
import decorators
13 class SupportBinariesTest(unittest
.TestCase
):
14 @decorators.Enabled('linux')
15 def testFindPath(self
):
16 md5sum_path
= support_binaries
.FindPath(
17 'md5sum_bin_host', 'x86_64', 'linux')
18 self
.assertNotEquals(md5sum_path
, None)
19 self
.assertTrue(os
.path
.isabs(md5sum_path
))
20 st
= os
.stat(md5sum_path
)
21 self
.assertTrue(st
.st_mode
& stat
.S_IXUSR
)