integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
- 'mkosi-args' : integration_test_template['mkosi-args'] + [
- '''--kernel-command-line-extra=
-
-frobnicate!
+ 'cmdline' : integration_test_template['cmdline'] + [
+ '''
systemd.setenv=TEST_CMDLINE_NEWLINE=foo
+ ''',
+ '''
systemd.setenv=TEST_CMDLINE_NEWLINE=bar
-
-''',
+ ''',
],
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
- 'mkosi-args' : integration_test_template['mkosi-args'] + [
- '--kernel-command-line-extra=selinux=1 lsm=selinux'
- ],
+ 'cmdline' : integration_test_template['cmdline'] + ['selinux=1', 'lsm=selinux'],
# FIXME; Figure out why reboot sometimes hangs with 'linux' firmware.
'firmware' : 'uefi',
},
'memory-accounting' : 'no',
'command' : testdata_dir / 'units/%N.sh',
},
+ 'cmdline' : [],
}
testdata_subdirs = [
'auxv',
integration_test_args += ['--slow']
endif
- integration_test_args += ['--'] + integration_test['mkosi-args']
+ integration_test_args += ['--']
+
+ if integration_test['cmdline'].length() > 0
+ integration_test_args += [
+ '--kernel-command-line-extra=@0@'.format(' '.join(integration_test['cmdline']))
+ ]
+ endif
+
+ integration_test_args += integration_test['mkosi-args']
integration_test_env = {}