diff options
| author | Axel Rasmussen <[email protected]> | 2022-04-28 23:16:11 -0700 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-04-28 23:16:11 -0700 |
| commit | 241ec63a9a0fbb39292ea1dd2d07f8dabedfe3df (patch) | |
| tree | ca5cb53b2115d03939158022527a8e0f08718be5 /tools/perf/scripts/python/flamegraph.py | |
| parent | b67bd551201a3e2c7e1def84980e9b2f0b3a3c77 (diff) | |
selftests: vm: fix shellcheck warnings in run_vmtests.sh
These might not be issues yet, but they make the script more fragile.
Also by fixing them we give a better example to future readers, who might
copy/paste or otherwise re-use snippets from our script.
- Use "read -r", since we don't ever want read to be interpreting '\'
characters as escape sequences...
- Quote variables, to deal with spaces properly.
- Use $() instead of the older and harder-to-nest ``.
- Get rid of superfluous "$" prefixes inside arithmetic $(()).
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Axel Rasmussen <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions