summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-05-26 11:33:53 +0200
committerJim Meyering <meyering@redhat.com>2010-05-26 11:33:53 +0200
commitd4201905ab4ed20ec3a5e2aea528835552e84a1d (patch)
treee0111d56a102657ee7e33c46a93558285d11a453
parent5d59808a65dc05c2777afb4b78128ca9db1ea78f (diff)
downloadcoreutils-d4201905ab4ed20ec3a5e2aea528835552e84a1d.tar.xz
tests: update help-version to work with parted, too
* tests/misc/help-version: Add init code for GNU Parted.
-rwxr-xr-xtests/misc/help-version3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/misc/help-version b/tests/misc/help-version
index 10f93ad30..a84c0ecc4 100755
--- a/tests/misc/help-version
+++ b/tests/misc/help-version
@@ -242,6 +242,9 @@ stat_setup () { args=$tmp_in; }
unlink_setup () { args=$tmp_in; }
lbracket_setup () { args=": ]"; }
+parted_setup () { args="-s $tmp_in mklabel gpt"
+ dd if=/dev/null of=$tmp_in seek=2000; }
+
# Ensure that each program "works" (exits successfully) when doing
# something more than --help or --version.
for i in $built_programs; do