Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: tools/telemetry/telemetry/util/support_binaries_unittest.py

Issue 643973002: Add multi-architecture support in telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add full multi-arch support. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698