diff options
author | Jim Meyering <meyering@redhat.com> | 2009-02-16 17:58:50 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-02-16 17:58:52 +0100 |
commit | 7cc930b80ebe50c131f203f17e11f3dba2673a41 (patch) | |
tree | 5e285b80076043021f7afc044c4aa2da68f4b431 /tests/t4000-sun-raid-type.sh | |
parent | e94d23fb1e226beaf3ce02fee9c2f69eb5636674 (diff) | |
download | parted-7cc930b80ebe50c131f203f17e11f3dba2673a41.tar.gz |
tests: use "compare", not "$compare"
* test-lib.sh (compare): Define "compare" as a function, not a variable.
* tests/t*.sh: use "compare", not "$compare"
Diffstat (limited to 'tests/t4000-sun-raid-type.sh')
-rwxr-xr-x | tests/t4000-sun-raid-type.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/t4000-sun-raid-type.sh b/tests/t4000-sun-raid-type.sh index 34c56ee..5e4a437 100755 --- a/tests/t4000-sun-raid-type.sh +++ b/tests/t4000-sun-raid-type.sh @@ -33,12 +33,12 @@ test_expect_success \ test_expect_success \ 'label the test disk as a sun disk' \ 'parted -s $dev mklabel sun > out 2>&1' -test_expect_success 'check for empty output' '$compare out /dev/null' +test_expect_success 'check for empty output' 'compare out /dev/null' test_expect_success \ 'create a single partition' \ 'parted -s $dev unit s mkpart ext2 0s 50s > out 2>&1' -test_expect_success 'check for empty output' '$compare out /dev/null' +test_expect_success 'check for empty output' 'compare out /dev/null' test_expect_success \ 'print the partition data in machine readable format' \ @@ -48,12 +48,12 @@ test_expect_success \ test_expect_success \ 'check for expected values for the partition' ' printf "$exp:::;\n" > exp && - $compare out exp' + compare out exp' test_expect_success \ 'set the raid flag' \ 'parted -s $dev set 1 raid >out 2>&1' -test_expect_success 'check for empty output' '$compare out /dev/null' +test_expect_success 'check for empty output' 'compare out /dev/null' test_expect_success \ 'print the partition data in machine readable format again' \ @@ -63,6 +63,6 @@ test_expect_success \ test_expect_success \ 'check for expected values (including raid flag) for the partition' ' printf "$exp:::raid;\n" > exp && - $compare out exp' + compare out exp' test_done |