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

Unified Diff: tools/vim/tests/chromium.ycm_extra_conf_unittest.py

Issue 1940753002: Enable YouCompleteMe and :CrCompile to find GN build directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change from 'out/Debug' to 'out/gn' directory in tests. Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/vim/ninja_output.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/vim/tests/chromium.ycm_extra_conf_unittest.py
diff --git a/tools/vim/tests/chromium.ycm_extra_conf_unittest.py b/tools/vim/tests/chromium.ycm_extra_conf_unittest.py
index bca9d4cc8a20a5a9269b7b508a599b17ad744849..e073c3a86a4754590101dd5849e3b7528f1769fb 100755
--- a/tools/vim/tests/chromium.ycm_extra_conf_unittest.py
+++ b/tools/vim/tests/chromium.ycm_extra_conf_unittest.py
@@ -80,12 +80,12 @@ class Chromium_ycmExtraConfTest(unittest.TestCase):
|
+-- out
|
- +-- Debug
+ +-- gn
build.ninja
"""
self.chrome_root = os.path.abspath(os.path.normpath(
os.path.join(self.test_root, 'src')))
- self.out_dir = os.path.join(self.chrome_root, 'out', 'Debug')
+ self.out_dir = os.path.join(self.chrome_root, 'out', 'gn')
os.makedirs(self.chrome_root)
os.makedirs(os.path.join(self.chrome_root, '.git'))
@@ -165,7 +165,7 @@ class Chromium_ycmExtraConfTest(unittest.TestCase):
def testOutDirNames(self):
out_root = os.path.join(self.chrome_root, 'out_with_underscore')
- out_dir = os.path.join(out_root, 'Debug')
+ out_dir = os.path.join(out_root, 'gn')
shutil.move(os.path.join(self.chrome_root, 'out'),
out_root)
@@ -337,4 +337,7 @@ class Chromium_ycmExtraConfTest(unittest.TestCase):
])
if __name__ == '__main__':
+ if not os.path.isfile('chromium.ycm_extra_conf.py'):
+ print('The test must be run from src/tools/vim/ directory')
+ sys.exit(1)
unittest.main()
« no previous file with comments | « tools/vim/ninja_output.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698