Commit fcfc257
ktest: Run commands through list-form shell open
run_command() currently uses string-form open():
open(CMD, "$command 2>&1 |")
That delegates parsing to the shell but also mixes the stderr redirection
into the command string. Switch to list-form open() with an explicit sh -c
wrapper so shell syntax errors are captured in the same output stream as
command output. Otherwise, important errors can not be retrieved from the
ktest LOG_FILE.
Cc: John Hawley <[email protected]>
Cc: Andrea Righi <[email protected]>
Cc: Marcos Paulo de Souza <[email protected]>
Cc: Matthieu Baerts <[email protected]>
Cc: Fernando Fernandez Mancera <[email protected]>
Cc: Pedro Falcato <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Ricardo B. Marlière <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>1 parent a2de57a commit fcfc257
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1921 | 1921 | | |
1922 | 1922 | | |
1923 | 1923 | | |
1924 | | - | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
1925 | 1928 | | |
1926 | 1929 | | |
1927 | 1930 | | |
| |||
0 commit comments