]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf test: Fixes to variable expansion and stdout for diff test
authorIan Rogers <irogers@google.com>
Wed, 12 Mar 2025 00:18:41 +0000 (17:18 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Sat, 15 Mar 2025 01:15:13 +0000 (18:15 -0700)
commit3a86d63e6fa51b2171310a1a1b60d5830f6f521b
tree052a7c8cafd5ee840665ad22bec52bcb16a2d290
parent4e82c88a90a99b50f6488defd0d3d85ddc47c068
perf test: Fixes to variable expansion and stdout for diff test

When make_data fails its error message needs to go to stderr rather
than stdout and the stdout value is captured in a variable.  Quote the
$err value so that it is always a valid input for test.  This error is
commonly encountered if no sample data is gathered by the test.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250312001841.1515779-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/diff.sh