diff options
author | Jim Meyering <meyering@redhat.com> | 2008-06-08 23:18:02 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-06-08 23:41:42 +0200 |
commit | b521054f9ece81e409b9e910b756825d7e6907ac (patch) | |
tree | 5140e71fa780d5c0d18e547796bf64abe385f0bc /libparted/tests/t2000-disk.sh | |
parent | 1179e95b2133861c4841b14b76c2076e80cef4d6 (diff) | |
download | parted-b521054f9ece81e409b9e910b756825d7e6907ac.tar.gz |
adjust tests here (libparted/tests/), as done for tests/
* libparted/tests/Makefile.am (init.sh): Don't emit code to
source test-lib.sh.
* libparted/tests/t1000-label.sh: Source test-lib.sh, not init.sh.
* libparted/tests/t2000-disk.sh: Likewise.
Diffstat (limited to 'libparted/tests/t2000-disk.sh')
-rwxr-xr-x | libparted/tests/t2000-disk.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libparted/tests/t2000-disk.sh b/libparted/tests/t2000-disk.sh index 7a85b98..ae261a9 100755 --- a/libparted/tests/t2000-disk.sh +++ b/libparted/tests/t2000-disk.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2008 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -19,7 +19,8 @@ test_description='run the disk unit tests in a directory supporting O_DIRECT' # This wrapper around the ./label binary is used to find a directory # in which one can open a file with the O_DIRECT flag. -. ./init.sh +: ${top_srcdir=../..} +. $top_srcdir/tests/test-lib.sh test_expect_success \ 'run the actual tests' 'disk' |