summaryrefslogtreecommitdiffstats
path: root/tests/ts/fdisk
diff options
context:
space:
mode:
authorKarel Zak2013-03-11 15:14:51 +0100
committerKarel Zak2013-03-11 15:14:51 +0100
commit32011e8925a97a56887217141fba1f6e22f1c458 (patch)
tree57b1dae9d9931876e7a5833d6b5c2cbe20244df3 /tests/ts/fdisk
parentfdisk: remove comma from ask number dialog (diff)
downloadkernel-qcow2-util-linux-32011e8925a97a56887217141fba1f6e22f1c458.tar.gz
kernel-qcow2-util-linux-32011e8925a97a56887217141fba1f6e22f1c458.tar.xz
kernel-qcow2-util-linux-32011e8925a97a56887217141fba1f6e22f1c458.zip
tests: ignore stderr in fdisk -l
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/fdisk')
-rwxr-xr-xtests/ts/fdisk/gpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ts/fdisk/gpt b/tests/ts/fdisk/gpt
index 179e9387f..a0902ca9f 100755
--- a/tests/ts/fdisk/gpt
+++ b/tests/ts/fdisk/gpt
@@ -36,7 +36,7 @@ FDISK_CMD_CREATE_PART="n\n2\n\n\n" # create 2nd partition
function print_layout {
echo -ne "\n---layout----------" >> $TS_OUTPUT
- $TS_CMD_FDISK -l ${TEST_IMAGE_NAME} | \
+ $TS_CMD_FDISK -l ${TEST_IMAGE_NAME} 2> /dev/null | \
sed 's/^.*\.img/__ts_dev__/g;
s/^[[:blank:]]*Device Boot/ Device Boot/g' >> $TS_OUTPUT 2>&1
echo -ne "-------------------\n\n" >> $TS_OUTPUT