Searched hist:"6 a0f3652952c7bba83af66c115a311d4a2164ebb" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/testing/ktest/ |
H A D | ktest.pl | diff 6a0f3652952c7bba83af66c115a311d4a2164ebb Mon Apr 19 19:29:31 CDT 2021 John 'Warthog9' Hawley (VMware) <warthog9@eaglescrag.net> ktest: Re-arrange the code blocks for better discoverability
Perl, as with most scripting languages, is fairly flexible in how / where you can define things, and it will (for the most part) do what you would expect it to do. This however can lead to situations, like with ktest, where things get muddled over time.
This pushes the variable definitions back up to the top, followed by functions, with the main script executables down at the bottom, INSTEAD of being somewhat mish-mashed together in certain places. This mostly has the advantage of making it more obvious where things are initially defined, what functions are there, and ACTUALLY where the main script starts executing, and should make this a little more approachable.
Signed-off-by: John 'Warthog9' Hawley (VMware) <warthog9@eaglescrag.net> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
|