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

Unified Diff: test/make_global_settings/full-toolchain/gyptest-make_global_settings.py

Issue 421453003: Add TestGypXcodeNinja to run tests against the xcode-ninja generator (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase onto origin/master Created 6 years 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
Index: test/make_global_settings/full-toolchain/gyptest-make_global_settings.py
diff --git a/test/make_global_settings/full-toolchain/gyptest-make_global_settings.py b/test/make_global_settings/full-toolchain/gyptest-make_global_settings.py
index 0dd148c229217f8b13369762b7af66461d0a503a..eebda7d49797a922ad4e4b0c430ac2971796fd92 100644
--- a/test/make_global_settings/full-toolchain/gyptest-make_global_settings.py
+++ b/test/make_global_settings/full-toolchain/gyptest-make_global_settings.py
@@ -27,7 +27,7 @@ test = TestGyp.TestGyp(formats=['ninja'])
# Note that we can't just pass format=['ninja-some_toolchain'] to the
# constructor above, because then this test wouldn't be recognized as a ninja
# format test.
-test.formats = ['ninja-some_flavor']
+test.formats = ['ninja-my_flavor' if f == 'ninja' else f for f in test.formats]
gyp_file = 'make_global_settings.gyp'
@@ -36,7 +36,8 @@ test.run_gyp(gyp_file,
# my_readelf.py, and the python executable.
'-Dworkdir=%s' % test.workdir,
'-Dpython=%s' % sys.executable)
-test.build(gyp_file, arguments=['-v'])
+test.build(gyp_file,
+ arguments=['-v'] if test.format == 'ninja-my_flavor' else [])
expected = ['MY_CC', 'MY_CXX']
test.must_contain_all_lines(test.stdout(), expected)

Powered by Google App Engine
This is Rietveld 408576698