gptfdisk/gptfdisk-0.8.5-fix-test-suite-short-opt-usage.patch

71 lines
1.7 KiB
Diff

From bc168eec1f61cbdb9191fd07da74ae9f5e83495e Mon Sep 17 00:00:00 2001
From: Ruediger Meier <ruediger.meier@ga-group.nl>
Date: Fri, 18 Jan 2013 18:37:32 +0100
Subject: [PATCH] fix test suite, short opt usage
Short options and their argument should not separated by "=" but by
space. While this seemed to work with popt 1.16 it does not with
1.13 (which is still used in most recent Fedora distros).
see also popt(3): "A space separates a short option from its
arguments; either a space or an = separates a long option from an
argument."
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
---
gdisk_test.sh | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gdisk_test.sh b/gdisk_test.sh
index e567d4c..8c5d800 100755
--- a/gdisk_test.sh
+++ b/gdisk_test.sh
@@ -147,7 +147,7 @@ EOF
;;
sgdisk)
- $SGDISK_BIN $TEMP_DISK -${OPT_NEW}=1 -${OPT_CHANGE_NAME}=1:"${TEST_PART_DEFAULT_NAME}"
+ $SGDISK_BIN $TEMP_DISK -${OPT_NEW} 1 -${OPT_CHANGE_NAME} 1:"${TEST_PART_DEFAULT_NAME}"
;;
esac
@@ -171,7 +171,7 @@ EOF
;;
sgdisk)
- $SGDISK_BIN $TEMP_DISK -${OPT_CHANGE_NAME}=1:${TEST_PART_NEWNAME}
+ $SGDISK_BIN $TEMP_DISK -${OPT_CHANGE_NAME} 1:${TEST_PART_NEWNAME}
;;
esac
@@ -195,7 +195,7 @@ EOF
;;
sgdisk)
- $SGDISK_BIN $TEMP_DISK -${OPT_CHANGE_TYPE}=1:${TEST_PART_NEWTYPE}
+ $SGDISK_BIN $TEMP_DISK -${OPT_CHANGE_TYPE} 1:${TEST_PART_NEWTYPE}
;;
esac
@@ -219,7 +219,7 @@ echo ""
;;
sgdisk)
- $SGDISK_BIN $TEMP_DISK -${OPT_BACKUP}=${GPT_BACKUP_FILENAME}
+ $SGDISK_BIN $TEMP_DISK -${OPT_BACKUP} ${GPT_BACKUP_FILENAME}
;;
esac
@@ -248,7 +248,7 @@ EOF
;;
sgdisk)
- $SGDISK_BIN $TEMP_DISK -${OPT_DELETE}=1
+ $SGDISK_BIN $TEMP_DISK -${OPT_DELETE} 1
;;
esac
--
1.7.6.1