aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 efa26cf..b23869f 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 fed8fae..343065d 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 bfcde7c..034b9a5 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')