]> git.proxmox.com Git - mirror_iproute2.git/commit
testsuite: Handle large number of kernel options
authorStefan Bader <stefan.bader@canonical.com>
Wed, 22 Aug 2018 08:31:38 +0000 (10:31 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Sat, 25 Aug 2018 06:13:26 +0000 (23:13 -0700)
commit10193649642ad549796c870fa2a252c3a4fee69f
tree5e860ffe9853259e68b2f7ed9fa28a4df5466c1f
parenta8e9f4ae14eac7d0faffcdd508a38d5051f0e857
testsuite: Handle large number of kernel options

Once there are more than a certain number of kernel config options
set (this happened for us with kernel 4.17), the method of passing
those as command line arguments exceeds the maximum number of
arguments the shell supports. This causes the whole testsuite to
fail.
Instead, create a temporary file and modify its contents so that
the config option variables are exported. Then this file can be
sourced in before running the tests.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Luca Boccassi <bluca@debian.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
testsuite/Makefile