diff options
author | Jim Meyering <meyering@redhat.com> | 2012-09-29 12:10:35 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-09-29 12:35:51 +0200 |
commit | c987c73cbe773dfa3b14b911ffc243137195bbb3 (patch) | |
tree | fdc1275361d1171ef87405dedb0f54de75d1e25b /tests/t9030-align-check.sh | |
parent | e6536360bd4496cee1f1bf2dfb0b11f6bdbbfd4b (diff) | |
download | parted-c987c73cbe773dfa3b14b911ffc243137195bbb3.tar.gz |
tests: clean up tests
Use warn_ and $ME_ in place of warn and $ME; remove definitions of
the latter two. Remove unused code.
* tests/lvm-utils.sh: Remove file. All functions were either unused
or duplicated/better in t-lvm.sh.
* tests/Makefile.am (EXTRA_DIST): Remove it.
* tests/t-local.sh (scsi_debug_setup_): Use echo 1>&2, not warn_, to
emit to log file only, not console. The diagnostic it emitted (in
verbose mode) was more "informational" than a warning.
* tests/t9030-align-check.sh: Use warn_, not warn.
* tests/t-lvm.sh: Likewise, and use fail_, not error (undefined!).
* tests/t-lib-helpers.sh (device_mapper_required_): Use t-lvm.sh
and an explicit lvm_init_root_dir_ in place of lvm-utils.sh.
Diffstat (limited to 'tests/t9030-align-check.sh')
-rw-r--r-- | tests/t9030-align-check.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/t9030-align-check.sh b/tests/t9030-align-check.sh index b3618a7..f0830f0 100644 --- a/tests/t9030-align-check.sh +++ b/tests/t9030-align-check.sh @@ -49,7 +49,8 @@ while :; do test $i = 70 && break # Wait up to 10s for the partition file to disappear. - wait_for_dev_to_disappear_ $p1 10 || { fail=1; warn $p1 failed to disappear; } + wait_for_dev_to_disappear_ $p1 10 \ + || { fail=1; warn_ $ME_ $p1 failed to disappear; } done Exit $fail |