mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-24 13:25:01 +00:00
Combine and update all pt-summary tests to new format.
This commit is contained in:
13
t/pt-summary/parse_fdisk.sh
Normal file
13
t/pt-summary/parse_fdisk.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
cat <<EOF > $TMPDIR/expected
|
||||
Device Type Start End Size
|
||||
============ ==== ========== ========== ==================
|
||||
/dev/dm-0 Disk 494609104896
|
||||
/dev/dm-1 Disk 5284823040
|
||||
/dev/sda Disk 500107862016
|
||||
/dev/sda1 Part 1 26 205632000
|
||||
/dev/sda2 Part 26 60801 499891392000
|
||||
EOF
|
||||
parse_fdisk samples/fdisk-01.txt > $TMPDIR/got
|
||||
no_diff $TMPDIR/got $TMPDIR/expected
|
Reference in New Issue
Block a user