From 7016b26f09a60cb3c68bbe9885b9eff70bff3d46 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Thu, 16 Feb 2012 10:52:28 -0700 Subject: [PATCH] More test debug hacks. --- t/lib/bash/collect.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/t/lib/bash/collect.sh b/t/lib/bash/collect.sh index 1b0a7a9f..4f50f633 100644 --- a/t/lib/bash/collect.sh +++ b/t/lib/bash/collect.sh @@ -22,9 +22,10 @@ local p="$TMPDIR/collect/2011_12_05" # Default collect, no extras like gdb, tcpdump, etc. set -x -collect "$TMPDIR/collect" "2011_12_05" # > $p-output 2>&1 +collect "$TMPDIR/collect" "2011_12_05" > $p-output 2>&1 set +x # XXX +cat $p-output ls $TMPDIR/collect # Even if this system doesn't have all the cmds, collect should still @@ -46,6 +47,9 @@ cmd_ok \ "grep -q '\-hostname\$' $TMPDIR/collect-files" \ "Collected hostname" +# XXX +df && cat $p-df + cmd_ok \ "grep -q 'Avail' $p-df" \ "df" @@ -97,6 +101,9 @@ cmd_ok \ "grep -q '^| Uptime' $p-mysqladmin" \ "mysqladmin ext" +# XXX +cat $p-opentables* + cmd_ok \ "grep -qP 'Database\tTable\tIn_use' $p-opentables1" \ "opentables1"