From fd925ff92e10962b4f92ca8b1b5e8dd798dcd795 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Mon, 15 Nov 2021 14:23:17 +0000 Subject: [PATCH] lisa.target: Allow None for target-conf/kernel/src config FIX Allow None to be passed so that it can be used with env vars. --- lisa/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisa/target.py b/lisa/target.py index 7ba3afc39..ef1bbbd38 100644 --- a/lisa/target.py +++ b/lisa/target.py @@ -150,7 +150,7 @@ class TargetConf(SimpleMultiSrcConf, HideExekallID): KeyDesc('tools', 'List of tools to install on the target', [TypedList[str]]), KeyDesc('lazy-platinfo', 'Lazily autodect the platform information to speed up the connection', [bool]), LevelKeyDesc('kernel', 'kernel information', ( - KeyDesc('src', 'Path to kernel source tree matching the kernel running on the target used to build modules', [str]), + KeyDesc('src', 'Path to kernel source tree matching the kernel running on the target used to build modules', [str, None]), LevelKeyDesc('modules', 'kernel modules', ( KeyDesc('build-env', 'Environment used to build modules. Can be any of "alpine" (Alpine Linux chroot, recommended) or "host" (host system)', [str]), KeyDesc('make-variables', 'Extra variables to pass to "make" command, such as "CC"', [TypedDict[str, object]]), -- GitLab