We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d50318f commit 2c66343Copy full SHA for 2c66343
tools/perf/tests/shell/list.sh
@@ -24,8 +24,11 @@ trap trap_cleanup EXIT TERM INT
24
25
test_list_json() {
26
echo "Json output test"
27
+ # Generate perf list json output into list_output file.
28
perf list -j -o "${list_output}"
- $PYTHON -m json.tool "${list_output}"
29
+ # Validate the json using python, redirect the json copy to /dev/null as
30
+ # otherwise the test may block writing to stdout.
31
+ $PYTHON -m json.tool "${list_output}" /dev/null
32
echo "Json output test [Success]"
33
}
34
0 commit comments