зеркало из https://github.com/microsoft/git.git
tests: use a lowercase "usage:" string
Adjust test commands and test suites so that their usage strings are consistent with Git. Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
0b670abd97
Коммит
b978403aed
|
@ -148,7 +148,7 @@ stop_httpd () {
|
|||
convert_to_rev_db () {
|
||||
"$PERL_PATH" -w -- - "$@" <<\EOF
|
||||
use strict;
|
||||
@ARGV == 2 or die "Usage: convert_to_rev_db <input> <output>";
|
||||
@ARGV == 2 or die "usage: convert_to_rev_db <input> <output>";
|
||||
open my $wr, '+>', $ARGV[1] or die "$!: couldn't open: $ARGV[1]";
|
||||
open my $rd, '<', $ARGV[0] or die "$!: couldn't open: $ARGV[0]";
|
||||
my $size = (stat($rd))[7];
|
||||
|
|
|
@ -14,7 +14,7 @@ xmkdir() {
|
|||
|
||||
R="$1"
|
||||
|
||||
[ -n "$R" ] || die "Usage: prepare-chroot.sh <root>"
|
||||
[ -n "$R" ] || die "usage: prepare-chroot.sh <root>"
|
||||
[ -x git ] || die "This script needs to be executed at git source code's top directory"
|
||||
[ -x /bin/busybox ] || die "You need busybox"
|
||||
|
||||
|
|
|
@ -114,6 +114,6 @@ int main(int argc, const char *argv[])
|
|||
return 0;
|
||||
|
||||
usage:
|
||||
fprintf(stderr, "Usage: %s %s\n", argv[0], usage_str);
|
||||
fprintf(stderr, "usage: %s %s\n", argv[0], usage_str);
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ int main(int argc, char *argv[])
|
|||
unsigned long from_size, data_size, out_size;
|
||||
|
||||
if (argc != 5 || (strcmp(argv[1], "-d") && strcmp(argv[1], "-p"))) {
|
||||
fprintf(stderr, "Usage: %s\n", usage_str);
|
||||
fprintf(stderr, "usage: %s\n", usage_str);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ int main(int argc, char *argv[])
|
|||
unsigned char *c;
|
||||
|
||||
if (argc < 2 || argc > 3) {
|
||||
fprintf(stderr, "Usage: %s <seed_string> [<size>]\n", argv[0]);
|
||||
fprintf(stderr, "usage: %s <seed_string> [<size>]\n", argv[0]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче