diff options
author | Jim Meyering <meyering@redhat.com> | 2012-09-12 20:34:48 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-09-12 20:35:02 +0200 |
commit | 81faa9b3b957781871ec3ef0df6e357388f857a1 (patch) | |
tree | 4664d278ae105b9a7e07c81505b1aceb47a2b795 | |
parent | 46d9108009ccb9ac567cc285a15efb05864932d5 (diff) | |
download | parted-81faa9b3b957781871ec3ef0df6e357388f857a1.tar.gz |
tests: update t7000-scripting.sh to avoid new FP
* tests/t7000-scripting.sh: Use -34s as the endpoint, not -1s,
to avoid a spurious difference. Also, remove quoting artifacts.
-rwxr-xr-x | tests/t7000-scripting.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/t7000-scripting.sh b/tests/t7000-scripting.sh index e64814b..859acda 100755 --- a/tests/t7000-scripting.sh +++ b/tests/t7000-scripting.sh @@ -47,7 +47,7 @@ for mkpart in mkpart; do dd if=/dev/zero of=testfile bs=${ss}c count=$N 2> /dev/null || fail=1 # Test the scripting mode of $mkpart. - parted -s testfile -- mklabel gpt "$mkpart" p-name ext3 1s -1s > out 2>&1 + parted -s testfile -- mklabel gpt "$mkpart" p-name ext3 1s -34s > out 2>&1 test $? = 1 || fail=1 # Compare the real error and the expected one @@ -60,8 +60,8 @@ for mkpart in mkpart; do dd if=/dev/zero of=testfile bs=${ss}c count=$N 2> /dev/null || fail=1 # Test the interactive mode of $mkpart echo n | \ - parted ---pretend-input-tty testfile \ - "mklabel gpt '$mkpart' p-name ext3 1s -1s" > out 2>&1 && fail=1 + parted ---pretend-input-tty -- testfile \ + mklabel gpt $mkpart p-name ext3 1s -34s > out 2>&1 && fail=1 # We have to format the output before comparing. # normalize the actual output |