Fix CPU_ARCH collection for Linux

This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-03-30 13:44:21 -03:00
parent f8113b4676
commit 33a4096663
3 changed files with 44 additions and 15 deletions

View File

@@ -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"