diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-05-12 16:16:41 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-05-13 10:38:17 +0300 |
commit | 501d7cf01c5578e98ab753fd09f6972f57824e50 (patch) | |
tree | 4e191f8bf0e74fab734bea1daddca8b958bb265c /test cases | |
parent | 4e312c19e693a69b0650ce6c8a8903163c959996 (diff) | |
download | meson-501d7cf01c5578e98ab753fd09f6972f57824e50.zip meson-501d7cf01c5578e98ab753fd09f6972f57824e50.tar.gz meson-501d7cf01c5578e98ab753fd09f6972f57824e50.tar.bz2 |
interpreter: flatten environment() initial values
Turns out listify() flattens by default, but stringlistify() cannot
flatten... How do I realize this only now?
Fixes: #8727
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/common/41 test args/meson.build | 2 | ||||
-rwxr-xr-x | test cases/common/41 test args/tester.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/test cases/common/41 test args/meson.build b/test cases/common/41 test args/meson.build index 81d3491..b21f1ad 100644 --- a/test cases/common/41 test args/meson.build +++ b/test cases/common/41 test args/meson.build @@ -23,7 +23,7 @@ test('environment variables 2', e3, env : env2) env_array = ['MESONTESTING=picklerror'] testfile = files('testfile.txt') testerpy = find_program('tester.py') -test('file arg', testerpy, args : testfile, env : env_array) +test('file arg', testerpy, args : testfile, env : [env_array, 'TEST_LIST_FLATTENING=1']) copy = find_program('copyfile.py') tester = executable('tester', 'tester.c') diff --git a/test cases/common/41 test args/tester.py b/test cases/common/41 test args/tester.py index 0b4010a..b5884cc 100755 --- a/test cases/common/41 test args/tester.py +++ b/test cases/common/41 test args/tester.py @@ -1,6 +1,10 @@ #!/usr/bin/env python3 import sys +import os + +assert os.environ['MESONTESTING'] == 'picklerror' +assert os.environ['TEST_LIST_FLATTENING'] == '1' with open(sys.argv[1]) as f: if f.read() != 'contents\n': |