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

Side by Side Diff: content/test/ct/path_util.py

Issue 1410353007: Add CT isolate file and CT script that will be run on swarming slaves (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Setup executable bit for presubmit Created 5 years, 1 month 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 (c) 2015 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2015 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 sys 6 import sys
7 7
8 8
9 def GetChromiumSrcDir():
10 return os.path.abspath(os.path.join(
11 os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, os.pardir))
12
13
14 def GetGpuTestDir():
15 return os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
16
17
18 def AddDirToPathIfNeeded(*path_parts): 9 def AddDirToPathIfNeeded(*path_parts):
19 path = os.path.abspath(os.path.join(*path_parts)) 10 path = os.path.abspath(os.path.join(*path_parts))
20 if os.path.isdir(path) and path not in sys.path: 11 if os.path.isdir(path) and path not in sys.path:
21 sys.path.append(path) 12 sys.path.append(path)
13
14
15 def GetChromiumSrcDir():
16 return os.path.abspath(os.path.join(
17 os.path.dirname(__file__), os.pardir, os.pardir, os.pardir))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698