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

Unified Diff: test/lib/TestGyp.py

Issue 23464051: Avoid MSB8012 in GYP (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Add test Created 7 years, 3 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
Index: test/lib/TestGyp.py
diff --git a/test/lib/TestGyp.py b/test/lib/TestGyp.py
index 930db7556c78ff4427834672e8bf591476100285..bd9b9eae760b900b235ab7033d2e52b8e18be0b9 100644
--- a/test/lib/TestGyp.py
+++ b/test/lib/TestGyp.py
@@ -155,6 +155,13 @@ class TestGypBase(TestCommon.TestCommon):
"""
return self.must_not_match(self.built_file_path(name, **kw), contents)
+ def built_file_must_not_contain(self, name, contents, **kw):
+ """
+ Fails the test if the specified built file name contains the specified
+ contents.
+ """
+ return self.must_not_contain(self.built_file_path(name, **kw), contents)
+
def copy_test_configuration(self, source_dir, dest_dir):
"""
Copies the test configuration from the specified source_dir
« no previous file with comments | « pylib/gyp/input.py ('k') | test/target/gyptest-target.py » ('j') | test/target/hello.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698