summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2017-12-06 11:30:06 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2017-12-07 21:31:50 +0200
commit3d63f21b60b5687f1ebe2a685a7ad205d61d3d6f (patch)
treea2998b92e213da384fef4dfb289cb275ae20cae9
parent5992ab1c721d82b90af0e26c7a907f196bcf8dd1 (diff)
downloadmeson-3d63f21b60b5687f1ebe2a685a7ad205d61d3d6f.tar.gz
Fix `array` type name
c9351ce30c03d107279090da7825096951a705d3 introduced the type as `array`, so mintro should expose it under the same name. (while at it, rename test 169 to be coherent)
-rw-r--r--mesonbuild/mintro.py2
-rwxr-xr-xrun_unittests.py4
-rw-r--r--test cases/common/169 array option/meson.build2
3 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py
index efa26cfaf..b23869fe0 100644
--- a/mesonbuild/mintro.py
+++ b/mesonbuild/mintro.py
@@ -140,7 +140,7 @@ def add_keys(optlist, options):
optdict['choices'] = opt.choices
typestr = 'combo'
elif isinstance(opt, coredata.UserArrayOption):
- typestr = 'stringarray'
+ typestr = 'array'
else:
raise RuntimeError("Unknown option type")
optdict['type'] = typestr
diff --git a/run_unittests.py b/run_unittests.py
index fed8fae1b..343065dba 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1588,7 +1588,7 @@ int main(int argc, char **argv) {
expected = {
'name': 'list',
'description': 'list',
- 'type': 'stringarray',
+ 'type': 'array',
'value': ['foo', 'bar'],
}
tdir = os.path.join(self.unit_test_dir, '18 array option')
@@ -1612,7 +1612,7 @@ int main(int argc, char **argv) {
expected = {
'name': 'list',
'description': 'list',
- 'type': 'stringarray',
+ 'type': 'array',
'value': ['foo', 'bar'],
}
tdir = os.path.join(self.unit_test_dir, '18 array option')
diff --git a/test cases/common/169 array option/meson.build b/test cases/common/169 array option/meson.build
index bfcde7ce0..034b9a545 100644
--- a/test cases/common/169 array option/meson.build
+++ b/test cases/common/169 array option/meson.build
@@ -12,6 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-project('stringarray default options')
+project('array default options')
assert(get_option('array') == ['foo', 'bar'], 'Default value for array is not equal to choices')