summaryrefslogtreecommitdiff
path: root/tests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-11-19 11:30:45 +0100
committerJim Meyering <meyering@redhat.com>2010-11-20 17:04:09 +0100
commitd6d9855d714c377d8928582c622a2847ff4de71e (patch)
tree545c468d12de1419d8815e3346fa0f8f9a1a0aff /tests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh
parent3bbdef285df7ccb47ab2448f41cdd55c08dc244c (diff)
downloadparted-d6d9855d714c377d8928582c622a2847ff4de71e.tar.gz
tests: switch from t-lib.sh to init.sh
* tests/init.cfg: Source t-local.sh. * tests/t-local.sh: Replace trap so that we always run scsi_debug_cleanup_, regardless of the cleanup_ function. Replace each snippet like this: -if test "$VERBOSE" = yes; then - set -x - parted --version -fi - -: ${srcdir=.} -. $srcdir/t-lib.sh +. "${srcdir=.}/init.sh"; path_prepend_ ../parted Use this command (LHS elided, because it was too long): git grep -l 'srcdir/t-lib.sh'|xargs perl -p0i -e \ 's!...!. "\${srcdir=.}/init.sh"; path_prepend_ ../parted\n!' * tests/t3310-flags.sh: Adjust manually, since the snippet didn't quite match.
Diffstat (limited to 'tests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh')
-rwxr-xr-xtests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh b/tests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh
index 9295017..f10f22e 100755
--- a/tests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh
+++ b/tests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh
@@ -18,13 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-if test "$VERBOSE" = yes; then
- set -x
- parted --version
-fi
-
-: ${srcdir=.}
-. $srcdir/t-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../parted
ss=$sector_size_
n_sectors=400