2019-12-11 22:03:27 +01:00
|
|
|
--- a/python/mozbuild/mozbuild/test/frontend/test_emitter.py
|
|
|
|
+++ b/python/mozbuild/mozbuild/test/frontend/test_emitter.py
|
2020-08-01 00:00:05 +02:00
|
|
|
@@ -1051,24 +1051,6 @@
|
2019-12-11 22:03:27 +01:00
|
|
|
|
|
|
|
self.assertEqual(local_includes, expected)
|
|
|
|
|
|
|
|
- def test_local_includes_invalid(self):
|
|
|
|
- """Test that invalid LOCAL_INCLUDES are properly detected."""
|
|
|
|
- reader = self.reader('local_includes-invalid/srcdir')
|
|
|
|
-
|
|
|
|
- with self.assertRaisesRegexp(
|
|
|
|
- SandboxValidationError,
|
2020-08-01 00:00:05 +02:00
|
|
|
- 'Path specified in LOCAL_INCLUDES.*resolves to the '
|
|
|
|
- 'topsrcdir or topobjdir'):
|
2019-12-11 22:03:27 +01:00
|
|
|
- objs = self.read_topsrcdir(reader)
|
|
|
|
-
|
|
|
|
- reader = self.reader('local_includes-invalid/objdir')
|
|
|
|
-
|
|
|
|
- with self.assertRaisesRegexp(
|
|
|
|
- SandboxValidationError,
|
2020-08-01 00:00:05 +02:00
|
|
|
- 'Path specified in LOCAL_INCLUDES.*resolves to the '
|
|
|
|
- 'topsrcdir or topobjdir'):
|
2019-12-11 22:03:27 +01:00
|
|
|
- objs = self.read_topsrcdir(reader)
|
|
|
|
-
|
2020-08-01 00:00:05 +02:00
|
|
|
def test_local_includes_file(self):
|
|
|
|
"""Test that a filename can't be used in LOCAL_INCLUDES."""
|
|
|
|
reader = self.reader('local_includes-filename')
|