OSDN Git Service

tests: move test_description= variable to a comment
authorJim Meyering <meyering@redhat.com>
Sat, 26 Feb 2011 05:40:46 +0000 (06:40 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 26 Feb 2011 05:40:46 +0000 (06:40 +0100)
test-lib.sh-based tests required a test_description= definition.
When testing switched to init.sh, which by convention uses a brief
comment on line 2 instead, some instances were not converted.
* libparted/tests/t1000-label.sh: Put test description on line 2.
Remove now-unused test_description= definition.
* libparted/tests/t2000-disk.sh: Likewise.
* tests/t0220-gpt-msftres.sh: Likewise.

libparted/tests/t1000-label.sh
libparted/tests/t2000-disk.sh
tests/t0220-gpt-msftres.sh

index 56b883e..1631193 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
+# run the label unit tests in a directory supporting O_DIRECT
 
 # Copyright (C) 2007-2011 Free Software Foundation, Inc.
 
@@ -15,7 +16,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-test_description='run the label 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.
 
index 9b2f50f..54a4bf4 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
+# run the disk unit tests in a directory supporting O_DIRECT
 
 # Copyright (C) 2007-2011 Free Software Foundation, Inc.
 
@@ -15,7 +16,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-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.
 
index 9ba30d3..300c26f 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh
+# gpt default "flag" for a partition must not be msftres
+
 # Copyright (C) 2009-2011 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
@@ -14,8 +16,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-test_description='gpt default "flag" for a partition must not be msftres'
-
 . "${srcdir=.}/init.sh"; path_prepend_ ../parted
 
 ss=$sector_size_