summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-10-18 14:44:49 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2020-10-18 18:29:12 +0300
commit0b794794f14a18711498924d3d68e455aef4993c (patch)
tree72f738c3c05659de3db289ac1fabc61bdf11e282
parenta050db5e306aa01cdc7ace561e6d53b1220a3a32 (diff)
downloadmeson-grammerfixuppance.tar.gz
In text, betterer grammer usings.grammerfixuppance
-rw-r--r--mesonbuild/wrap/wrap.py2
-rwxr-xr-xrun_unittests.py2
-rw-r--r--test cases/failing/33 non-root subproject/test.json2
-rw-r--r--test cases/failing/78 subproj dependency not-found and required/test.json2
4 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py
index a4e0b25c0..bc35893a5 100644
--- a/mesonbuild/wrap/wrap.py
+++ b/mesonbuild/wrap/wrap.py
@@ -264,7 +264,7 @@ class Resolver:
self.directory = packagename
self.wrap = self.wraps.get(packagename)
if not self.wrap:
- m = 'Subproject directory not found and {}.wrap file not found'
+ m = 'Neither a subproject directory nor a {}.wrap file was found.'
raise WrapNotFoundException(m.format(self.packagename))
self.directory = self.wrap.directory
diff --git a/run_unittests.py b/run_unittests.py
index 03cd82b83..aa9e41d16 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -5447,7 +5447,7 @@ class FailureTests(BasePlatformTests):
'''
tdir = os.path.join(self.unit_test_dir, '20 subproj dep variables')
out = self.init(tdir, inprocess=True)
- self.assertRegex(out, r"Subproject directory not found and .*nosubproj.wrap.* file not found")
+ self.assertRegex(out, r"Neither a subproject directory nor a .*nosubproj.wrap.* file was found")
self.assertRegex(out, r'Function does not take positional arguments.')
self.assertRegex(out, r'Dependency .*somenotfounddep.* from subproject .*subprojects/somesubproj.* found: .*NO.*')
self.assertRegex(out, r'Dependency .*zlibproxy.* from subproject .*subprojects.*somesubproj.* found: .*YES.*')
diff --git a/test cases/failing/33 non-root subproject/test.json b/test cases/failing/33 non-root subproject/test.json
index a14cece7f..52baf6a65 100644
--- a/test cases/failing/33 non-root subproject/test.json
+++ b/test cases/failing/33 non-root subproject/test.json
@@ -1,7 +1,7 @@
{
"stdout": [
{
- "line": "test cases/failing/33 non-root subproject/some/meson.build:1:0: ERROR: Subproject directory not found and someproj.wrap file not found"
+ "line": "test cases/failing/33 non-root subproject/some/meson.build:1:0: ERROR: Neither a subproject directory nor a someproj.wrap file was found."
}
]
}
diff --git a/test cases/failing/78 subproj dependency not-found and required/test.json b/test cases/failing/78 subproj dependency not-found and required/test.json
index 534b4f472..a89c0eb7d 100644
--- a/test cases/failing/78 subproj dependency not-found and required/test.json
+++ b/test cases/failing/78 subproj dependency not-found and required/test.json
@@ -1,7 +1,7 @@
{
"stdout": [
{
- "line": "test cases/failing/78 subproj dependency not-found and required/meson.build:2:0: ERROR: Subproject directory not found and missing.wrap file not found"
+ "line": "test cases/failing/78 subproj dependency not-found and required/meson.build:2:0: ERROR: Neither a subproject directory nor a missing.wrap file was found."
}
]
}