mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +00:00
Fix CPU_ARCH collection for Linux
This commit is contained in:
@@ -1264,6 +1264,25 @@ is \
|
||||
" some weird format etc 1 day, 15:08, 11 users, load average: 0.18, 0.09, 0.08" \
|
||||
"parse_uptime returns uptime as-if if it doesn't contain an 'up'"
|
||||
|
||||
# parse_lvs
|
||||
|
||||
is \
|
||||
"$(format_lvs "" "" "")" \
|
||||
"Cannot execute 'lvs'" \
|
||||
"format_lvs has a meaningful error message if all goes wrong"
|
||||
|
||||
echo "There was an error..." > "$TMPDIR/in"
|
||||
like \
|
||||
"$(format_lvs "$TMPDIR/some_file_that_does_not_exist" "" "$TMPDIR/in")" \
|
||||
"lvs didn't output anything and had the following errors:" \
|
||||
"format_lvs shows the stderr of lvs if the lvs file doesn't exist"
|
||||
|
||||
echo "Pretending to be an lvs dump" > "$TMPDIR/in"
|
||||
is \
|
||||
"$(format_lvs "$TMPDIR/in" "" "")" \
|
||||
"Pretending to be an lvs dump" \
|
||||
"format_lvs has a meaningful error message if all goes wrong"
|
||||
|
||||
# report_system_summary
|
||||
parse_options "$BIN_DIR/pt-summary"
|
||||
|
||||
|
Reference in New Issue
Block a user