OSDN Git Service

ktest.pl: Add shell commands to variables
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 8 Dec 2022 02:29:44 +0000 (21:29 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 9 Dec 2022 04:23:05 +0000 (23:23 -0500)
commit88a51b4f2e65ca4378a81ff0925fad076e82e177
tree9ddfade2a4ce5a7ac23b5c09b1e1549e1f834583
parent26df05a8c1420ad3de314fdd407e7fc2058cc7aa
ktest.pl: Add shell commands to variables

Allow variables to execute shell commands. Note, these are processed when
they are first seen while parsing the config file. This is useful if you
have the same config file used for multiple hosts (as they may be in a git
repository).

 HOSTNAME := ${shell hostname}
 DEFAULTS IF "${HOSTNAME}" == "frodo"

Link: https://lkml.kernel.org/r/20221207212944.277ee850@gandalf.local.home
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl
tools/testing/ktest/sample.conf